fix 61907 - auto_attach yes option not honored in ec2_transit_gateway (#61993)

* fix 61907 - auto_attach yes option not honored in ec2_transit_gateway

* add changelog fragment
This commit is contained in:
Bob Boldin 2019-10-21 11:06:43 -04:00 committed by John R Barker
parent f0cadb9843
commit 40975cd436
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- ec2_transit_gateway - fixed issue where auto_attach set to yes was not being honored (https://github.com/ansible/ansible/issues/61907)

View file

@ -367,7 +367,7 @@ class AnsibleEc2Tgw(object):
if self._module.params.get('asn'):
options['AmazonSideAsn'] = self._module.params.get('asn')
options['AutoAcceptSharedAttachments'] = self.enable_option_flag(self._module.params.get('auto_accept'))
options['AutoAcceptSharedAttachments'] = self.enable_option_flag(self._module.params.get('auto_attach'))
options['DefaultRouteTableAssociation'] = self.enable_option_flag(self._module.params.get('auto_associate'))
options['DefaultRouteTablePropagation'] = self.enable_option_flag(self._module.params.get('auto_propagate'))
options['VpnEcmpSupport'] = self.enable_option_flag(self._module.params.get('vpn_ecmp_support'))