Add messages when adding/removing clusters to CLI

This commit is contained in:
Joshua Boniface 2020-01-06 09:11:00 -05:00
parent 3e5c7c5546
commit be5c67f696
1 changed files with 2 additions and 0 deletions

View File

@ -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