Fix disabling of power meter on G6 machines
authorTom Hughes <tom@compton.nu>
Wed, 23 Jul 2014 20:17:34 +0000 (21:17 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 23 Jul 2014 20:17:34 +0000 (21:17 +0100)
cookbooks/hardware/attributes/default.rb

index 473ceb1811249ac6922131b19aeab390ddd18ca0..45b46a18a5fe178ae3aadd70281f42a4db7b70ef 100644 (file)
@@ -7,7 +7,7 @@ if node[:dmi] and node[:dmi][:system]
 
     case dmi.system.product_name
       when "ProLiant DL360 G6", "ProLiant DL360 G7"
-        default[:hardware][:sensors][:power][:power1] = { :ignore => true }
+        default[:hardware][:sensors]["power_meter-*"][:power]["power1"] = { :ignore => true }
     end
   end
 end