X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fscripts%2Fosm.py;h=75b3be24e29e2811cce1ba3f67260414e21608c3;hb=e4a7ea18501cbebdfc32cb3e0ca34f90e33e5583;hp=b98bc9e52f38732f52c6a42daaadd44017699e2f;hpb=96cb4393f12a5116a4eb7bd2f5daad051ab75e9e;p=osm%2Fosmclient.git diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index b98bc9e..75b3be2 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -112,7 +112,8 @@ def ns_list(ctx, filter): ['ns instance name', 'id', 'operational status', - 'config status']) + 'config status', + 'detailed status']) for ns in resp: fullclassname = ctx.obj.__module__ + "." + ctx.obj.__class__.__name__ if fullclassname == 'osmclient.sol005.client.Client': @@ -126,13 +127,15 @@ def ns_list(ctx, filter): nsr_id = nsr['ns-instance-config-ref'] opstatus = nsr['operational-status'] if 'operational-status' in nsr else 'Not found' configstatus = nsr['config-status'] if 'config-status' in nsr else 'Not found' + detailed_status = nsr['detailed-status'] if 'detailed-status' in nsr else 'Not found' if configstatus == "config_not_needed": configstatus = "configured (no charms)" table.add_row( [nsr_name, nsr_id, opstatus, - configstatus]) + configstatus, + detailed_status]) table.align = 'l' print(table)