mirror of https://github.com/apache/cloudstack.git
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)
|
||||
errMsg = errMsg + " due to " + answer.getDetails();
|
||||
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) {
|
||||
logger.debug("Failed to revert vm snapshot", e);
|
||||
|
|
|
|||
Loading…
Reference in New Issue