Skip an empty local cluster in cluster list

This commit is contained in:
Joshua Boniface 2021-04-13 10:01:49 -04:00
parent 529f99841d
commit 66f1ac35ab
1 changed files with 1 additions and 5 deletions

View File

@ -331,11 +331,7 @@ def cluster_list():
if os.path.isfile(cfgfile):
description, address, port, scheme, api_key = read_from_yaml(cfgfile)
else:
description = 'N/A'
address = 'N/A'
port = 'N/A'
scheme = 'N/A'
api_key = 'N/A'
continue
else:
address = cluster_details.get('host', 'N/A')
description = cluster_details.get('description', 'N/A')