summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/dmi.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ohai/plugins/dmi.rb')
-rw-r--r--lib/ohai/plugins/dmi.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ohai/plugins/dmi.rb b/lib/ohai/plugins/dmi.rb
index 48bcb5e1..81c271e9 100644
--- a/lib/ohai/plugins/dmi.rb
+++ b/lib/ohai/plugins/dmi.rb
@@ -16,14 +16,14 @@
# limitations under the License.
#
-require "ohai/plugins/dmi_common"
-
-Ohai.plugin do
+Ohai.plugin(:DMI) do
provides "dmi"
# dmidecode does not return data without access to /dev/mem (or its equivalent)
collect_data do
+ require "ohai/plugins/dmi_common"
+
dmi Mash.new
# all output lines should fall within one of these patterns