mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
a4a53ecff5
commit
ae09a0fb61
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue