| ... | ... | @@ -1024,7 +1024,7 @@ def main(): |
| 1024 | 1024 | if virsh("domstate", name).strip() != "shut off": |
| 1025 | 1025 | virsh("destroy", name) |
| 1026 | 1026 | root = transition.normalize_vm(ET.fromstring(virsh("dumpxml", name))) |
| 1027 | | virsh("undefine", name, *(["--nvram"] if root.find("./os/nvram") is not None else []), *(["--tpm"] if root.find("./devices/tpm") is not None else [])) |
| 1027 | virsh("undefine", name, "--managed-save", *(["--nvram"] if root.find("./os/nvram") is not None else []), *(["--tpm"] if root.find("./devices/tpm") is not None else [])) |
| 1028 | 1028 | directory = DISKS / name |
| 1029 | 1029 | if payload["disks"] and directory.is_dir(): |
| 1030 | 1030 | for file in directory.iterdir(): |