Revert "Fix collection of PSU details from dmidecode"
authorTom Hughes <tom@compton.nu>
Tue, 26 Apr 2016 18:02:49 +0000 (19:02 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 26 Apr 2016 18:02:49 +0000 (19:02 +0100)
This reverts commit 1482fd1105597fca4262ace6ef2a9016aa228a24.

cookbooks/hardware/templates/default/ohai.rb.erb

index bec49f967f38ed1151f00819f3ad533e8de65b25..1e7ca8713154bc88884ee8a3ca4e0d96b414a50a 100644 (file)
@@ -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