Actually fix incorrect naming bug
This commit is contained in:
parent
b80f9e28dc
commit
e6bfbb6d45
|
@ -1367,8 +1367,8 @@ def remove_vm_snapshot(zkhandler, domain, snapshot_name):
|
||||||
)
|
)
|
||||||
rbd_snapshots = _snapshots.split(",")
|
rbd_snapshots = _snapshots.split(",")
|
||||||
for snap in rbd_snapshots:
|
for snap in rbd_snapshots:
|
||||||
name, rbd = snap.split("@")
|
rbd, name = snap.split("@")
|
||||||
pool, volume = name.split("/")
|
pool, volume = rbd.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