From 96febc9740d1183d66a4a9a74af3b236da9a9fc3 Mon Sep 17 00:00:00 2001 From: garciaale Date: Tue, 3 Nov 2020 17:15:47 -0300 Subject: [PATCH] Changes usage of vnfd['name'] property because it is called 'product-name' in SOL006 Change-Id: Idb142e78a47999e1c2aaab54673dc6225c4e2124 Signed-off-by: garciaale --- osmclient/scripts/osm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.25.1