Change-Id: Idb142e78a47999e1c2aaab54673dc6225c4e2124
Signed-off-by: garciaale <agarcia@whitestack.com>
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','-')
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)