X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fscripts%2Fosm.py;h=dc93b7ab53ba1a1b3e8c81bd7e2f1e01090d446f;hb=refs%2Fchanges%2F60%2F9960%2F2;hp=30830876ca14efb6bc665525c8034d3322b75f61;hpb=9e6dac5f21161b3e5e30ed301433277aef8d4c1f;p=osm%2Fosmclient.git diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index 3083087..dc93b7a 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -519,7 +519,7 @@ def vnfd_list(ctx, nf_type, filter, long): else: table = PrettyTable(['nfpkg name', 'id']) for vnfd in resp: - name = vnfd['name'] if 'name' in vnfd else '-' + name = vnfd['product-name'] if 'product-name' in vnfd else '-' if long: onb_state = vnfd['_admin'].get('onboardingState','-') op_state = vnfd['_admin'].get('operationalState','-') @@ -534,7 +534,7 @@ def vnfd_list(ctx, nf_type, filter, long): else: table = PrettyTable(['nfpkg name', 'id']) for vnfd in resp: - table.add_row([vnfd['name'], vnfd['id']]) + table.add_row([vnfd['product-name'], vnfd['id']]) table.align = 'l' print(table)