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()) {
4941
+
StringerrorMsg = "Cannot deploy the VM to specified host " + hostId + "; host has cpu capability? " + cpuCapabilityAndCapacity.first() + ", host has capacity? " + cpuCapabilityAndCapacity.second();
4942
+
s_logger.info(errorMsg);
4943
+
if (!AllowDeployVmIfGivenHostFails.value()) {
4944
+
thrownewInvalidParameterValueException(errorMsg);
4945
+
};
4946
+
} else {
4940
4947
plan = newDataCenterDeployment(vm.getDataCenterId(), destinationHost.getPodId(), destinationHost.getClusterId(), destinationHost.getId(), null, null);
4941
4948
if (!AllowDeployVmIfGivenHostFails.value()) {
4942
4949
deployOnGivenHost = true;
4943
4950
}
4944
-
} catch (InvalidParameterValueExceptionex) {
4945
-
s_logger.error("Cannot deploy the VM to specified host due to: " + ex.getMessage());
4946
-
if (!AllowDeployVmIfGivenHostFails.value()) {
4947
-
throwex;
4948
-
}
4949
4951
}
4950
4952
} elseif (destinationCluster != null) {
4951
4953
s_logger.debug("Destination Cluster to deploy the VM is specified, specifying a deployment plan to deploy the VM");
0 commit comments