Skip an empty local cluster in cluster list
This commit is contained in:
parent
529f99841d
commit
66f1ac35ab
|
@ -331,11 +331,7 @@ def cluster_list():
|
||||||
if os.path.isfile(cfgfile):
|
if os.path.isfile(cfgfile):
|
||||||
description, address, port, scheme, api_key = read_from_yaml(cfgfile)
|
description, address, port, scheme, api_key = read_from_yaml(cfgfile)
|
||||||
else:
|
else:
|
||||||
description = 'N/A'
|
continue
|
||||||
address = 'N/A'
|
|
||||||
port = 'N/A'
|
|
||||||
scheme = 'N/A'
|
|
||||||
api_key = 'N/A'
|
|
||||||
else:
|
else:
|
||||||
address = cluster_details.get('host', 'N/A')
|
address = cluster_details.get('host', 'N/A')
|
||||||
description = cluster_details.get('description', 'N/A')
|
description = cluster_details.get('description', 'N/A')
|
||||||
|
|
Loading…
Reference in New Issue