You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!cpuCapabilityAndCapacity.first() || !cpuCapabilityAndCapacity.second()) {
4859
+
StringerrorMsg = "Cannot deploy the VM to specified host " + hostId + "; host has cpu capability? " + cpuCapabilityAndCapacity.first() + ", host has capacity? " + cpuCapabilityAndCapacity.second();
4860
+
s_logger.info(errorMsg);
4861
+
if (!AllowDeployVmIfGivenHostFails.value()) {
4862
+
thrownewInvalidParameterValueException(errorMsg);
4863
+
};
4864
+
} else {
4865
+
plan = newDataCenterDeployment(vm.getDataCenterId(), destinationHost.getPodId(), destinationHost.getClusterId(), destinationHost.getId(), null, null);
4866
+
if (!AllowDeployVmIfGivenHostFails.value()) {
4867
+
deployOnGivenHost = true;
4868
+
}
4859
4869
}
4860
4870
} elseif (destinationCluster != null) {
4861
4871
s_logger.debug("Destination Cluster to deploy the VM is specified, specifying a deployment plan to deploy the VM");
0 commit comments