From: garciaale Date: Tue, 3 Nov 2020 20:15:47 +0000 (-0300) Subject: Changes usage of vnfd['name'] property because it is called 'product-name' in SOL006 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F38%2F9938%2F1;p=osm%2Fosmclient.git Changes usage of vnfd['name'] property because it is called 'product-name' in SOL006 Change-Id: Idb142e78a47999e1c2aaab54673dc6225c4e2124 Signed-off-by: garciaale --- 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)