X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fcli_commands%2Fnfpkg.py;h=8d3f01b1b1e651a7d325814d4b4170d9cd466ce3;hb=c0420cf86aaed737f59666516dd9e4de5c5db16c;hp=ce7212e15955eaf1a6c0ad6cede51494543968c6;hpb=23cc10b85ee953de2a1f5c6d84cffcc816a421d0;p=osm%2Fosmclient.git diff --git a/osmclient/cli_commands/nfpkg.py b/osmclient/cli_commands/nfpkg.py index ce7212e..8d3f01b 100755 --- a/osmclient/cli_commands/nfpkg.py +++ b/osmclient/cli_commands/nfpkg.py @@ -71,7 +71,7 @@ def vnfd_list(ctx, nf_type, filter, long): else: table = PrettyTable(["nfpkg name", "id", "desc type"]) for vnfd in resp: - name = vnfd.get("id", vnfd.get("name", "-")) + name = vnfd.get("id", vnfd.get("product-name", "-")) descriptor_type = "sol006" if "product-name" in vnfd else "rel8" if long: onb_state = vnfd["_admin"].get("onboardingState", "-")