From e2f815437117bfb5756f9e48314b11588d130a32 Mon Sep 17 00:00:00 2001 From: Markus Bergholz Date: Fri, 26 Aug 2022 12:14:21 +0200 Subject: [PATCH] adjust booleans (#1420) adjust booleans: use true/false Depends-On: #1423 SUMMARY ansible-community/community-topics#116 ISSUE TYPE Docs Pull Request Reviewed-by: Mark Chappell Reviewed-by: Alina Buzachis This commit was initially merged in https://github.com/ansible-collections/community.aws See: https://github.com/ansible-collections/community.aws/commit/cb9716e14d44357aaadd2be733bbaa0dd8a522bc --- plugins/modules/ec2_transit_gateway.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/modules/ec2_transit_gateway.py b/plugins/modules/ec2_transit_gateway.py index be1082768fa..73822ebd87d 100644 --- a/plugins/modules/ec2_transit_gateway.py +++ b/plugins/modules/ec2_transit_gateway.py @@ -90,8 +90,8 @@ - name: Create a new transit gateway with options community.aws.ec2_transit_gateway: asn: 64514 - auto_associate: no - auto_propagate: no + auto_associate: false + auto_propagate: false dns_support: True description: "nonprod transit gateway" purge_tags: False @@ -470,17 +470,17 @@ def setup_module_object(): argument_spec = dict( asn=dict(type='int'), - auto_associate=dict(type='bool', default='yes'), - auto_attach=dict(type='bool', default='no'), - auto_propagate=dict(type='bool', default='yes'), + auto_associate=dict(type='bool', default=True), + auto_attach=dict(type='bool', default=False), + auto_propagate=dict(type='bool', default=True), description=dict(type='str'), - dns_support=dict(type='bool', default='yes'), - purge_tags=dict(type='bool', default='yes'), + dns_support=dict(type='bool', default=True), + purge_tags=dict(type='bool', default=True), state=dict(default='present', choices=['present', 'absent']), tags=dict(type='dict', aliases=['resource_tags']), transit_gateway_id=dict(type='str'), - vpn_ecmp_support=dict(type='bool', default='yes'), - wait=dict(type='bool', default='yes'), + vpn_ecmp_support=dict(type='bool', default=True), + wait=dict(type='bool', default=True), wait_timeout=dict(type='int', default=300) )