From 0f6cb50501b33d9b59c0ddcc8405cd933b8999cc Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 26 Apr 2016 19:02:49 +0100 Subject: [PATCH] Revert "Fix collection of PSU details from dmidecode" This reverts commit 1482fd1105597fca4262ace6ef2a9016aa228a24. --- cookbooks/hardware/templates/default/ohai.rb.erb | 3 --- 1 file changed, 3 deletions(-) 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 -- 2.39.5