lib/ohai/plugins/solaris2/virtualization.rb in ohai-13.3.0 vs lib/ohai/plugins/solaris2/virtualization.rb in ohai-13.4.0
- old
+ new
@@ -16,12 +16,11 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
-require "ohai/mixin/dmi_decode"
-
Ohai.plugin(:Virtualization) do
+ require "ohai/mixin/dmi_decode"
include Ohai::Mixin::DmiDecode
provides "virtualization"
def collect_solaris_guestid
command = "/usr/sbin/zoneadm list -p"