diff options
Diffstat (limited to 'lib/ohai/plugins/ohai.rb')
-rw-r--r-- | lib/ohai/plugins/ohai.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/ohai/plugins/ohai.rb b/lib/ohai/plugins/ohai.rb index 97092ab5..ca01e21e 100644 --- a/lib/ohai/plugins/ohai.rb +++ b/lib/ohai/plugins/ohai.rb @@ -16,15 +16,15 @@ # limitations under the License. # -require "ohai" - -Ohai.plugin do - provides "ohai" +Ohai.plugin(:Ohai) do + provides "chef_packages/ohai" collect_data do - self[:chef_packages] = Mash.new unless self[:chef_packages] - self[:chef_packages][:ohai] = Mash.new - self[:chef_packages][:ohai][:version] = Ohai::VERSION - self[:chef_packages][:ohai][:ohai_root] = Ohai::OHAI_ROOT + require 'ohai' + + chef_packages Mash.new unless chef_packages + chef_packages[:ohai] = Mash.new + chef_packages[:ohai][:version] = Ohai::VERSION + chef_packages[:ohai][:ohai_root] = Ohai::OHAI_ROOT end end |