projects
/
osm
/
osmclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Operational state in k8scluster-list
[osm/osmclient.git]
/
osmclient
/
scripts
/
osm.py
diff --git
a/osmclient/scripts/osm.py
b/osmclient/scripts/osm.py
index
18b8033
..
26327fc
100755
(executable)
--- 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
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'],
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:
table.align = 'l'
print(table)
except ClientException as e: