Handle extra return variable
This commit is contained in:
parent
6448b31d2c
commit
45c4c86911
|
@ -1326,7 +1326,7 @@ def backup_vm(
|
||||||
return False, f"ERROR: Target path {target_path} does not exist!"
|
return False, f"ERROR: Target path {target_path} does not exist!"
|
||||||
|
|
||||||
# 1. Get information about VM
|
# 1. Get information about VM
|
||||||
vm_detail = get_list(zkhandler, limit=dom_uuid, is_fuzzy=False)[0]
|
_, vm_detail = get_list(zkhandler, limit=dom_uuid, is_fuzzy=False)[0]
|
||||||
vm_volumes = [
|
vm_volumes = [
|
||||||
tuple(d["name"].split("/")) for d in vm_detail["disks"] if d["type"] == "rbd"
|
tuple(d["name"].split("/")) for d in vm_detail["disks"] if d["type"] == "rbd"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue