CLOUDSTACK-8419: [Hyper-V] corrected the wrong error message in stop command answer

this closes #200
This commit is contained in:
Anshul Gangwar 2015-04-06 15:06:54 +05:30 committed by Rajesh Battala
parent f86c0a23c1
commit 7949caf156
1 changed files with 2 additions and 2 deletions

View File

@ -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