Fix broken prompting for pool removal

This commit is contained in:
Joshua Boniface 2019-06-18 21:33:39 -04:00
parent 2bbbda3da5
commit 264c2d4748
1 changed files with 5 additions and 5 deletions

View File

@ -1283,17 +1283,17 @@ def ceph_pool_add(name, pgs):
'name' 'name'
) )
@click.option('--yes', is_flag=True, @click.option('--yes', is_flag=True,
expose_value=False,
prompt='DANGER: This command will destroy this pool and all volumes. Do you want to continue?' prompt='DANGER: This command will destroy this pool and all volumes. Do you want to continue?'
) )
def ceph_pool_remove(name): def ceph_pool_remove(name, yes):
""" """
Remove a Ceph RBD pool with name NAME and all volumes on it. Remove a Ceph RBD pool with name NAME and all volumes on it.
""" """
zk_conn = pvc_common.startZKConnection(zk_host) if yes:
retcode, retmsg = pvc_ceph.remove_pool(zk_conn, name) zk_conn = pvc_common.startZKConnection(zk_host)
cleanup(retcode, retmsg, zk_conn) retcode, retmsg = pvc_ceph.remove_pool(zk_conn, name)
cleanup(retcode, retmsg, zk_conn)
############################################################################### ###############################################################################
# pvc ceph pool list # pvc ceph pool list