bug 12488: Netscaler - Invalid error message presented to the user when deployVm fails to implement network becasue of insuffucient capacity in Netscaler.

status 12488: resolved fixed
This commit is contained in:
Murali reddy 2012-02-07 19:15:36 +05:30
parent a665f9bf50
commit 8fbdd2919e

View File

@ -166,8 +166,7 @@ public class NetscalerElement extends ExternalLoadBalancerDeviceManagerImpl impl
try {
return manageGuestNetworkWithExternalLoadBalancer(true, guestConfig);
} catch (InsufficientCapacityException capacityException) {
// TODO: handle out of capacity exception gracefully in case of multple providers available
return false;
throw new ResourceUnavailableException("There are no NetScaler load balancer devices with the free capacity for implementing this network", DataCenter.class, guestConfig.getDataCenterId());
}
}