From 671a90723602b6908ba11fd77d283a17f4c53a21 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 30 Jan 2023 11:48:43 -0500 Subject: [PATCH] Allow rename in disable state --- daemon-common/vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon-common/vm.py b/daemon-common/vm.py index 2c8c2a73..4aec2950 100644 --- a/daemon-common/vm.py +++ b/daemon-common/vm.py @@ -644,7 +644,7 @@ def rename_vm(zkhandler, domain, new_domain): # Verify that the VM is in a stopped state; renaming is not supported otherwise state = zkhandler.read(("domain.state", dom_uuid)) - if state != "stop": + if state not in ["stop", "disable"]: return ( False, 'ERROR: VM "{}" is not in stopped state; VMs cannot be renamed while running.'.format(