X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fscripts%2Fosm.py;h=2a321fc871d667eb111cf5aed5f914f67bb576a4;hb=6ff7ac96b5b8e74f5f1c36231f19c87f12715149;hp=6560514d9ddfa43b3224f45dffbca8cbc6b14c8c;hpb=b24bfcc7f38f02f2cba3b0ee9f6e9143ff20f9ec;p=osm%2Fosmclient.git diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index 6560514..2a321fc 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -217,7 +217,12 @@ def vnfd_list2(ctx, filter): @click.pass_context def vnf_list(ctx): ''' list all VNF instances''' - resp = ctx.obj.vnf.list() + try: + check_client_version(ctx.obj, ctx.command.name, 'v1') + resp = ctx.obj.vnf.list() + except ClientException as inst: + print(inst.message) + exit(1) table = PrettyTable( ['vnf name', 'id',