diff options
Diffstat (limited to 'cxmanage_api/cli/__init__.py')
-rw-r--r-- | cxmanage_api/cli/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cxmanage_api/cli/__init__.py b/cxmanage_api/cli/__init__.py index ea4284a..bb0f2f7 100644 --- a/cxmanage_api/cli/__init__.py +++ b/cxmanage_api/cli/__init__.py @@ -173,7 +173,7 @@ def get_node_strings(args, nodes, justify=False): else: strings = [x.ip_address for x in nodes] - if justify: + if strings and justify: just_size = max(16, max(len(x) for x in strings) + 1) strings = [x.ljust(just_size) for x in strings] |