Changes usage of vnfd['name'] property because it is called 'product-name' in SOL006
[osm/osmclient.git] / osmclient / scripts / osm.py
index 3083087..dc93b7a 100755 (executable)
@@ -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)