Fix invalid responses during promote
This commit is contained in:
parent
ea5512e3d8
commit
c4763ac596
|
@ -4587,11 +4587,14 @@ def vm_worker_promote_mirror(
|
||||||
vm_detail = get_list(zkhandler, limit=dom_uuid, is_fuzzy=False)[1][0]
|
vm_detail = get_list(zkhandler, limit=dom_uuid, is_fuzzy=False)[1][0]
|
||||||
|
|
||||||
# Determine if there's a valid shared snapshot to send an incremental diff from
|
# Determine if there's a valid shared snapshot to send an incremental diff from
|
||||||
local_snapshots = {s["name"] for s in vm_detail["snapshots"]}
|
if destination_vm_detail:
|
||||||
remote_snapshots = {s["name"] for s in destination_vm_detail["snapshots"]}
|
local_snapshots = {s["name"] for s in vm_detail["snapshots"]}
|
||||||
incremental_parent = next(
|
remote_snapshots = {s["name"] for s in destination_vm_detail["snapshots"]}
|
||||||
(s for s in local_snapshots if s in remote_snapshots), None
|
incremental_parent = next(
|
||||||
)
|
(s for s in local_snapshots if s in remote_snapshots), None
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
incremental_parent = None
|
||||||
|
|
||||||
current_stage += 1
|
current_stage += 1
|
||||||
update(
|
update(
|
||||||
|
|
Loading…
Reference in New Issue