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