From: Tom Hughes Date: Tue, 26 Apr 2016 18:02:49 +0000 (+0100) Subject: Revert "Fix collection of PSU details from dmidecode" X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/0f6cb50501b33d9b59c0ddcc8405cd933b8999cc Revert "Fix collection of PSU details from dmidecode" This reverts commit 1482fd1105597fca4262ace6ef2a9016aa228a24. --- 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