Fix bug in snapshot removal
This commit is contained in:
parent
a4ca112128
commit
2b1082590e
|
@ -1401,7 +1401,7 @@ def remove_vm_snapshot(zkhandler, domain, snapshot_name, remove_backup=False):
|
||||||
rbd_snapshots = _snapshots.split(",")
|
rbd_snapshots = _snapshots.split(",")
|
||||||
for snap in rbd_snapshots:
|
for snap in rbd_snapshots:
|
||||||
name, rbd = snap.split("@")
|
name, rbd = snap.split("@")
|
||||||
pool, volume = rbd.split("/")
|
pool, volume = name.split("/")
|
||||||
ret, msg = ceph.remove_snapshot(zkhandler, pool, volume, name)
|
ret, msg = ceph.remove_snapshot(zkhandler, pool, volume, name)
|
||||||
if not ret:
|
if not ret:
|
||||||
return False, msg
|
return False, msg
|
||||||
|
|
Loading…
Reference in New Issue