diff options
author | Claire McQuin <claire@opscode.com> | 2013-10-11 18:19:23 -0700 |
---|---|---|
committer | Claire McQuin <claire@opscode.com> | 2013-10-17 12:07:30 -0700 |
commit | f47459d9163e139732e1d0e61563d5e21a5af848 (patch) | |
tree | 23cd900611210aeb0e4c9d3ea28967fd5dc679df | |
parent | af3096530d363c594c4712cc4b67e21336609dd6 (diff) | |
download | ohai-f47459d9163e139732e1d0e61563d5e21a5af848.tar.gz |
move dmi require into collect_data
-rw-r--r-- | lib/ohai/plugins/dmi.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ohai/plugins/dmi.rb b/lib/ohai/plugins/dmi.rb index 75316667..e63c7b92 100644 --- a/lib/ohai/plugins/dmi.rb +++ b/lib/ohai/plugins/dmi.rb @@ -16,14 +16,13 @@ # limitations under the License. # -require 'ohai/common/dmi' - Ohai.plugin(:DMI) do provides "dmi" # dmidecode does not return data without access to /dev/mem (or its equivalent) collect_data do + require 'ohai/common/dmi' dmi Mash.new # all output lines should fall within one of these patterns |