Merge pull request #27569 from lomeroe/fix_boto_elb

boto_vpc.get_subnet_association now returns a dict w/key of vpc_id, a…
This commit is contained in:
Nicole Thomas 2015-10-01 10:03:06 -06:00
commit db963b7864

View file

@ -476,6 +476,7 @@ def _elb_present(
vpc_id = __salt__['boto_vpc.get_subnet_association'](
subnets, region, key, keyid, profile
)
vpc_id = vpc_id.get('vpc_id')
if not vpc_id:
msg = 'Subnets {0} do not map to a valid vpc id.'.format(subnets)
raise SaltInvocationError(msg)