mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
commit
db963b7864
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