mirror of https://github.com/apache/cloudstack.git
Fixed incorrect exception method
This commit is contained in:
parent
db991dd8f6
commit
9c09c35fa5
|
|
@ -3305,8 +3305,8 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
|||
}
|
||||
|
||||
//don't allow to update shared network
|
||||
if (offering.getGuestType() == GuestType.Shared) {
|
||||
throw new InvalidParameterValueException("Can't upgrade the networkDomain for the network of type " + GuestType.Isolated);
|
||||
if (offering.getGuestType() != GuestType.Isolated) {
|
||||
throw new InvalidParameterValueException("networkDomain can be upgraded only for the network of type " + GuestType.Isolated);
|
||||
}
|
||||
|
||||
long offeringId = oldNetworkOfferingId;
|
||||
|
|
|
|||
Loading…
Reference in New Issue