X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fscripts%2Fosm.py;fp=osmclient%2Fscripts%2Fosm.py;h=4af0dad5f3bd3624823e73b67ca89f97cd6d3914;hb=4335f9962fec0516628b5d0b8337fc977e55669c;hp=603d373acc293cce71ec2c6df664e98aa90dd648;hpb=c27c98a9cd08703d7e9b9aefdf6cf961a3b73f5a;p=osm%2Fosmclient.git diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index 603d373..4af0dad 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -384,7 +384,7 @@ def ns_list(ctx, filter, long): project_list = ctx.obj.project.list() try: vim_list = ctx.obj.vim.list() - except: + except Exception: vim_list = [] else: table = PrettyTable( @@ -3756,7 +3756,8 @@ def sdnc_show(ctx, name): @click.option( "--k8s-nets", prompt=True, - help='list of VIM networks, in JSON inline format, where the cluster is accessible via L3 routing, e.g. "{(k8s_net1:vim_network1) [,(k8s_net2:vim_network2) ...]}"', + help='''list of VIM networks, in JSON inline format, where the cluster is + accessible via L3 routing, e.g. "{(k8s_net1:vim_network1) [,(k8s_net2:vim_network2) ...]}"''', ) @click.option("--description", default=None, help="human readable description") @click.option( @@ -3812,7 +3813,8 @@ def k8scluster_add( @click.option("--vim", help="VIM target, the VIM where the cluster resides") @click.option( "--k8s-nets", - help='list of VIM networks, in JSON inline format, where the cluster is accessible via L3 routing, e.g. "{(k8s_net1:vim_network1) [,(k8s_net2:vim_network2) ...]}"', + help='''list of VIM networks, in JSON inline format, where the cluster is accessible + via L3 routing, e.g. "{(k8s_net1:vim_network1) [,(k8s_net2:vim_network2) ...]}"''', ) @click.option("--description", help="human readable description") @click.option( @@ -3920,7 +3922,7 @@ def k8scluster_list(ctx, filter, literal, long): ) try: vim_list = ctx.obj.vim.list() - except: + except Exception: vim_list = [] for cluster in resp: logger.debug("Cluster details: {}".format(yaml.safe_dump(cluster)))