Merge pull request #27633 from rallytime/bp-27559

Back-port #27559 to 2015.8
This commit is contained in:
Mike Place 2015-10-02 13:22:07 -06:00
commit 888e9bdf5d

View File

@ -367,7 +367,14 @@ def present(
'''
ret = {'name': name, 'result': True, 'comment': '', 'changes': {}}
if vpc_zone_identifier:
vpc_id = __salt__['boto_vpc.get_subnet_association'](vpc_zone_identifier, region, key, keyid, profile)
vpc_id = __salt__['boto_vpc.get_subnet_association'](
vpc_zone_identifier,
region,
key,
keyid,
profile
)
vpc_id = vpc_id.get('vpc_id')
log.debug('Auto Scaling Group {0} is associated with VPC ID {1}'
.format(name, vpc_id))
else: