Fixed incorrect exception method

This commit is contained in:
Alena Prokharchyk 2011-11-08 12:46:05 -08:00
parent db991dd8f6
commit 9c09c35fa5
1 changed files with 2 additions and 2 deletions

View File

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