If suspend failed for some reason (e.g. too short duration) then
subsequent attempts to trigger suspend were rejected because we
had already marked a suspend as being in progress
* src/util/virnodesuspend.c: Don't mark suspend as active
until we've successfully triggered it
_("Suspend operation already in progress"));
goto cleanup;
}
- aboutToSuspend = true;
/* Check if the host supports the requested suspend target */
switch (target) {
goto cleanup;
}
+ aboutToSuspend = true;
ret = 0;
cleanup:
virNodeSuspendUnlock();