Change-Id: I9c00a72fd88a9e66fd292d4117f7506b0b131d8a
Signed-off-by: Felipe Vicens <felipe.vicens@atos.net>
if literal:
print(yaml.safe_dump(resp))
return
if literal:
print(yaml.safe_dump(resp))
return
- table = PrettyTable(['Name', 'Id', 'Version', 'VIM', 'K8s-nets', 'Description'])
+ table = PrettyTable(['Name', 'Id', 'Version', 'VIM', 'K8s-nets', 'Operational State', 'Description'])
for cluster in resp:
table.add_row([cluster['name'], cluster['_id'], cluster['k8s_version'], cluster['vim_account'],
for cluster in resp:
table.add_row([cluster['name'], cluster['_id'], cluster['k8s_version'], cluster['vim_account'],
- json.dumps(cluster['nets']), trunc_text(cluster.get('description',''),40)
- ])
+ json.dumps(cluster['nets']), cluster["_admin"]["operationalState"],
+ trunc_text(cluster.get('description',''),40)])
table.align = 'l'
print(table)
except ClientException as e:
table.align = 'l'
print(table)
except ClientException as e: