mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8419: [Hyper-V] corrected the wrong error message in stop command answer
this closes #200
This commit is contained in:
parent
f86c0a23c1
commit
7949caf156
|
|
@ -1215,8 +1215,8 @@ namespace HypervResource
|
|||
ComputerSystem vm = wmiCallsV2.GetComputerSystem(vmName);
|
||||
if (vm == null || vm.EnabledState == 2)
|
||||
{
|
||||
// VM is not available or vm in running state
|
||||
return ReturnCloudStackTypedJArray(new { result = false, details = "VM is running on host, bailing out", vm = vmName, contextMap = contextMap }, CloudStackTypes.StopAnswer);
|
||||
// VM is not available or vm is not in running state
|
||||
return ReturnCloudStackTypedJArray(new { result = false, details = "VM is not available or vm is not running on host, bailing out", vm = vmName, contextMap = contextMap }, CloudStackTypes.StopAnswer);
|
||||
}
|
||||
}
|
||||
try
|
||||
|
|
|
|||
Loading…
Reference in New Issue