From c24139574f6907195763e349a6b6ef1e4217adc6 Mon Sep 17 00:00:00 2001 From: Felipe Vicens Date: Fri, 6 Dec 2019 15:05:07 +0100 Subject: [PATCH] Operational state in k8scluster-list Change-Id: I9c00a72fd88a9e66fd292d4117f7506b0b131d8a Signed-off-by: Felipe Vicens --- osmclient/scripts/osm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index 18b8033..26327fc 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -2455,11 +2455,11 @@ def k8scluster_list(ctx, filter, literal): 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'], - 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: -- 2.25.1