summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kraft <george.kraft@calxeda.com>2012-07-20 13:28:47 -0500
committerGeorge Kraft <george.kraft@calxeda.com>2012-07-20 13:28:47 -0500
commitf85f0a80a02d89cf5a3803a48c55229c6aa06825 (patch)
tree29e1dadf25a231c90da2c1cfdbb4735784020d8a
parent26367a259e3c0e290b48106b6c648ff97e819f08 (diff)
downloadcxmanage-f85f0a80a02d89cf5a3803a48c55229c6aa06825.tar.gz
controller: Only print ipmitool output if it's non-empty
-rw-r--r--cxmanage/controller.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cxmanage/controller.py b/cxmanage/controller.py
index 632941f..1cfd9b5 100644
--- a/cxmanage/controller.py
+++ b/cxmanage/controller.py
@@ -499,7 +499,7 @@ class Controller:
# Print results
if len(results) > 0:
for target in self.targets:
- if target.address in results:
+ if target.address in results and results[target.address] != "":
print "[ IPMItool output from %s ]" % target.address
print results[target.address]
print