Add "mirror" VM state

This commit is contained in:
2024-09-11 10:12:29 -04:00
parent b1c4b2e928
commit 1cbadb1172
6 changed files with 12 additions and 8 deletions

View File

@ -1280,7 +1280,7 @@ def vm_flush_locks(zkhandler, vm):
zkhandler, None, None, None, vm, is_fuzzy=False, negate=False
)
if retdata[0].get("state") not in ["stop", "disable"]:
if retdata[0].get("state") not in ["stop", "disable", "mirror"]:
return {"message": "VM must be stopped to flush locks"}, 400
retflag, retdata = pvc_vm.flush_locks(zkhandler, vm)