Only shut down VM if it is running
This commit is contained in:
parent
ac00f7c4c8
commit
ea5512e3d8
|
@ -4476,6 +4476,7 @@ def vm_worker_promote_mirror(
|
||||||
total=total_stages,
|
total=total_stages,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if vm_detail["state"] in ["start"]:
|
||||||
retcode, retmsg = shutdown_vm(zkhandler, domain, wait=True)
|
retcode, retmsg = shutdown_vm(zkhandler, domain, wait=True)
|
||||||
if not retcode:
|
if not retcode:
|
||||||
fail(
|
fail(
|
||||||
|
|
Loading…
Reference in New Issue