lib/consolr/runners/ipmitool.rb in consolr-1.1.0 vs lib/consolr/runners/ipmitool.rb in consolr-1.1.1

- old
+ new

@@ -69,9 +69,13 @@ def status node cmd 'power status', node end + def sensors node + cmd 'sensor list', node + end + private def cmd action, node system("#{@ipmitool} -I lanplus -H #{node.ipmi.address} -U #{node.ipmi.username} -P #{node.ipmi.password} #{action}") return $?.exitstatus == 0 ? "SUCCESS" : "FAILED" end