diff options
author | George Kraft <george.kraft@calxeda.com> | 2012-09-14 13:18:49 -0500 |
---|---|---|
committer | George Kraft <george.kraft@calxeda.com> | 2012-09-14 13:18:49 -0500 |
commit | daad0761825c24d6b0f85e46c48303b554e80b81 (patch) | |
tree | 51ff5e037b1b9ba6327305d5b0d1243ca83eec20 | |
parent | 8222f5644d5cb90ca590612a36465c7cbf8ee3d0 (diff) | |
download | cxmanage-daad0761825c24d6b0f85e46c48303b554e80b81.tar.gz |
Clean up --all-nodes error output slightly
-rw-r--r-- | cxmanage/controller.py | 2 | ||||
-rwxr-xr-x | scripts/cxmanage | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/cxmanage/controller.py b/cxmanage/controller.py index 37590b3..d80db61 100644 --- a/cxmanage/controller.py +++ b/cxmanage/controller.py @@ -216,7 +216,7 @@ class Controller: self.add_target(ipinfo[1], username, password) # Print results and errors - if self.verbosity >= 1: + if self.verbosity >= 1 and len(self.targets) > 0: print "Discovered the following IP addresses:" for target in self.targets: print target.address diff --git a/scripts/cxmanage b/scripts/cxmanage index 7a1f51c..606a85f 100755 --- a/scripts/cxmanage +++ b/scripts/cxmanage @@ -353,8 +353,7 @@ def add_targets(controller, args): # Add hosts to controller if args.all_nodes: if controller.add_fabrics(hosts, args.user, args.password): - print "ERROR: Failed to get IP info from all hosts. Aborting." - print + print "ERROR: Failed to get IP addresses. Aborting.\n" sys.exit(1) else: for host in hosts: |