mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Remove info about the environment from exception when revert VM snapshot (#9944)
Co-authored-by: Lucas Martins <lucas.martins@scclouds.com.br>
This commit is contained in:
parent
a2d5aa997f
commit
dc0ebe985c
@ -419,7 +419,7 @@ public class DefaultVMSnapshotStrategy extends ManagerBase implements VMSnapshot
|
|||||||
if (answer != null && answer.getDetails() != null)
|
if (answer != null && answer.getDetails() != null)
|
||||||
errMsg = errMsg + " due to " + answer.getDetails();
|
errMsg = errMsg + " due to " + answer.getDetails();
|
||||||
logger.error(errMsg);
|
logger.error(errMsg);
|
||||||
throw new CloudRuntimeException(errMsg);
|
throw new CloudRuntimeException(String.format("Unable to revert VM %s to snapshot %s.", userVm.getInstanceName(), vmSnapshotVO.getName()));
|
||||||
}
|
}
|
||||||
} catch (OperationTimedoutException e) {
|
} catch (OperationTimedoutException e) {
|
||||||
logger.debug("Failed to revert vm snapshot", e);
|
logger.debug("Failed to revert vm snapshot", e);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user