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 6e9bf56cf1
commit 155b9df8ee
1 changed files with 1 additions and 2 deletions

View File

@ -311,8 +311,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) {