Correct bugs around snapshots

This commit is contained in:
Joshua Boniface 2019-06-19 09:41:33 -04:00
parent 1c9f606480
commit 98365b0fcf
1 changed files with 1 additions and 1 deletions

View File

@ -1352,7 +1352,7 @@ def get_list_volume(zk_conn, pool, limit):
def add_snapshot(zk_conn, pool, volume, name):
# Tell the cluster to create a new snapshot
add_snapshot_string = 'snapshot_add {},{}'.format(pool. volume, name)
add_snapshot_string = 'snapshot_add {},{},{}'.format(pool, volume, name)
zkhandler.writedata(zk_conn, {'/ceph/cmd': add_snapshot_string})
# Wait 1/2 second for the cluster to get the message and start working
time.sleep(0.5)