X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/b577c05d0145a6daea265427f85bed96235eab9e..1482fd1105597fca4262ace6ef2a9016aa228a24:/cookbooks/hardware/templates/default/ohai.rb.erb diff --git a/cookbooks/hardware/templates/default/ohai.rb.erb b/cookbooks/hardware/templates/default/ohai.rb.erb index 1e7ca8713..bec49f967 100644 --- a/cookbooks/hardware/templates/default/ohai.rb.erb +++ b/cookbooks/hardware/templates/default/ohai.rb.erb @@ -865,6 +865,7 @@ Ohai.plugin(:Hardware) do end def psu_devices + devices = {} device = nil IO.popen(["dmidecode", "-t", "39"]).each_with_object([]) do |line, devices| @@ -877,6 +878,8 @@ Ohai.plugin(:Hardware) do device = nil end end + + devices end def mc_device