Add messages when adding/removing clusters to CLI
This commit is contained in:
parent
3e5c7c5546
commit
be5c67f696
|
@ -180,6 +180,7 @@ def cluster_add(address, port, ssl, name):
|
||||||
}
|
}
|
||||||
# Update the store
|
# Update the store
|
||||||
update_store(store_path, existing_config)
|
update_store(store_path, existing_config)
|
||||||
|
click.echo('Added new cluster "{}" at host "{}" to local database'.format(name, address)
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# pvc cluster remove
|
# pvc cluster remove
|
||||||
|
@ -201,6 +202,7 @@ def cluster_remove(name):
|
||||||
print('No cluster with name "{}" found'.format(name))
|
print('No cluster with name "{}" found'.format(name))
|
||||||
# Update the store
|
# Update the store
|
||||||
update_store(store_path, existing_config)
|
update_store(store_path, existing_config)
|
||||||
|
click.echo('Removed cluster "{}" from local database'.format(name)
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# pvc cluster list
|
# pvc cluster list
|
||||||
|
|
Loading…
Reference in New Issue