CLOUDSTACK-3902: createVpcOffering - throw an excpetion when sourceNat service is not passed in

This commit is contained in:
Alena Prokharchyk 2013-07-30 09:57:50 -07:00
parent 906ea82572
commit a36c8a962b

View File

@ -314,8 +314,7 @@ public class VpcManagerImpl extends ManagerBase implements VpcManager, VpcProvis
}
if (!sourceNatSvc) {
s_logger.debug("Automatically adding source nat service to the list of VPC services");
svcProviderMap.put(Service.SourceNat, defaultProviders);
throw new InvalidParameterValueException("SourceNat service is required by VPC offering");
}
if (!firewallSvs) {