X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=osmclient%2Fscripts%2Fosm.py;h=26327fcb266189471f9f7bf0b71feed7fd733a8d;hb=c24139574f6907195763e349a6b6ef1e4217adc6;hp=ee3e7927fb266498fa9d75d88eccd62369e7d66b;hpb=5a139d43787d022534d13a92b26982a597519480;p=osm%2Fosmclient.git diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index ee3e792..26327fc 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -2455,11 +2455,11 @@ def k8scluster_list(ctx, filter, literal): if literal: print(yaml.safe_dump(resp)) return - table = PrettyTable(['Name', 'Id', 'Version', 'VIM', 'K8s-nets', 'Description']) + table = PrettyTable(['Name', 'Id', 'Version', 'VIM', 'K8s-nets', 'Operational State', 'Description']) for cluster in resp: table.add_row([cluster['name'], cluster['_id'], cluster['k8s_version'], cluster['vim_account'], - json.dumps(cluster['nets']), trunc_text(cluster.get('description',''),40) - ]) + json.dumps(cluster['nets']), cluster["_admin"]["operationalState"], + trunc_text(cluster.get('description',''),40)]) table.align = 'l' print(table) except ClientException as e: @@ -2503,7 +2503,7 @@ def k8scluster_show(ctx, name, literal): @click.option('--type', type=click.Choice(['helm-chart', 'juju-bundle']), prompt=True, - help='type of repo for helm-chart or juju-bundle') + help='type of repo (helm-chart for Helm Charts, juju-bundle for Juju Bundles)') @click.option('--description', default='', help='human readable description') @@ -2540,7 +2540,7 @@ def repo_add(ctx, @click.option('--newname', help='New name for the repo') @click.option('--uri', help='URI of the repo') @click.option('--type', type=click.Choice(['helm-chart', 'juju-bundle']), - help='type of repo for helm-chart or juju-bundle') + help='type of repo (helm-chart for Helm Charts, juju-bundle for Juju Bundles)') @click.option('--description', help='human readable description') #@click.option('--wait', # is_flag=True,