boto_vpc.get_subnet_association now returns a dict w/key of vpc_id, adding code to handle the dict now

fixes #27543
This commit is contained in:
Ethan Moore 2015-09-30 19:45:31 +00:00
parent a4a53ecff5
commit ae09a0fb61

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)