Fix broken prompting for pool removal
This commit is contained in:
parent
2bbbda3da5
commit
264c2d4748
|
@ -1283,14 +1283,14 @@ 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.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if yes:
|
||||||
zk_conn = pvc_common.startZKConnection(zk_host)
|
zk_conn = pvc_common.startZKConnection(zk_host)
|
||||||
retcode, retmsg = pvc_ceph.remove_pool(zk_conn, name)
|
retcode, retmsg = pvc_ceph.remove_pool(zk_conn, name)
|
||||||
cleanup(retcode, retmsg, zk_conn)
|
cleanup(retcode, retmsg, zk_conn)
|
||||||
|
|
Loading…
Reference in New Issue