X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fscripts%2Fosm.py;h=3ef81acf5e87064f70b8461a7d922d1842500afc;hb=refs%2Fchanges%2F08%2F9908%2F2;hp=06d77e04e4eec26ec8867b1f4d99173e81679187;hpb=076bc55bec62aae951a01ff2b1ebbd62cd6f21da;p=osm%2Fosmclient.git diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index 06d77e0..3ef81ac 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -2538,7 +2538,7 @@ def vim_list(ctx, filter, long): if long: table = PrettyTable(['vim name', 'uuid', 'project', 'operational state', 'error details']) else: - table = PrettyTable(['vim name', 'uuid']) + table = PrettyTable(['vim name', 'uuid', 'operational state']) for vim in resp: if long: vim_details = ctx.obj.vim.get(vim['uuid']) @@ -2562,7 +2562,7 @@ def vim_list(ctx, filter, long): table.add_row([vim['name'], vim['uuid'], '{} ({})'.format(project_name, project_id), vim_state, wrap_text(text=error_details, width=80)]) else: - table.add_row([vim['name'], vim['uuid']]) + table.add_row([vim['name'], vim['uuid'], vim['_admin'].get('operationalState', '-')]) table.align = 'l' print(table)