diff options
author | George Kraft <george.kraft@calxeda.com> | 2012-07-20 13:28:47 -0500 |
---|---|---|
committer | George Kraft <george.kraft@calxeda.com> | 2012-07-20 13:28:47 -0500 |
commit | f85f0a80a02d89cf5a3803a48c55229c6aa06825 (patch) | |
tree | 29e1dadf25a231c90da2c1cfdbb4735784020d8a | |
parent | 26367a259e3c0e290b48106b6c648ff97e819f08 (diff) | |
download | cxmanage-f85f0a80a02d89cf5a3803a48c55229c6aa06825.tar.gz |
controller: Only print ipmitool output if it's non-empty
-rw-r--r-- | cxmanage/controller.py | 2 |
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 |