[cloud] Support check_mode for ec2_vpc_subnet_facts (#23111)
* Support check_mode for ec2_vpc_subnet_facts facts modules support check mode by default * ec2_vpc_subnet_facts pep8 tidy up
This commit is contained in:
parent
2be64b8c3a
commit
bded5ac987
2 changed files with 13 additions and 13 deletions
|
@ -98,11 +98,11 @@ def get_subnet_info(subnet):
|
||||||
'map_public_ip_on_launch': subnet.mapPublicIpOnLaunch,
|
'map_public_ip_on_launch': subnet.mapPublicIpOnLaunch,
|
||||||
'state': subnet.state,
|
'state': subnet.state,
|
||||||
'tags': subnet.tags,
|
'tags': subnet.tags,
|
||||||
'vpc_id': subnet.vpc_id
|
'vpc_id': subnet.vpc_id}
|
||||||
}
|
|
||||||
|
|
||||||
return subnet_info
|
return subnet_info
|
||||||
|
|
||||||
|
|
||||||
def list_ec2_vpc_subnets(connection, module):
|
def list_ec2_vpc_subnets(connection, module):
|
||||||
|
|
||||||
filters = module.params.get("filters")
|
filters = module.params.get("filters")
|
||||||
|
@ -127,7 +127,8 @@ def main():
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
module = AnsibleModule(argument_spec=argument_spec)
|
module = AnsibleModule(argument_spec=argument_spec,
|
||||||
|
supports_check_mode=True)
|
||||||
|
|
||||||
if not HAS_BOTO:
|
if not HAS_BOTO:
|
||||||
module.fail_json(msg='boto required for this module')
|
module.fail_json(msg='boto required for this module')
|
||||||
|
|
|
@ -183,7 +183,6 @@ lib/ansible/modules/cloud/amazon/ec2_vpc_net.py
|
||||||
lib/ansible/modules/cloud/amazon/ec2_vpc_net_facts.py
|
lib/ansible/modules/cloud/amazon/ec2_vpc_net_facts.py
|
||||||
lib/ansible/modules/cloud/amazon/ec2_vpc_peer.py
|
lib/ansible/modules/cloud/amazon/ec2_vpc_peer.py
|
||||||
lib/ansible/modules/cloud/amazon/ec2_vpc_subnet.py
|
lib/ansible/modules/cloud/amazon/ec2_vpc_subnet.py
|
||||||
lib/ansible/modules/cloud/amazon/ec2_vpc_subnet_facts.py
|
|
||||||
lib/ansible/modules/cloud/amazon/ec2_vpc_vgw.py
|
lib/ansible/modules/cloud/amazon/ec2_vpc_vgw.py
|
||||||
lib/ansible/modules/cloud/amazon/ec2_vpc_vgw_facts.py
|
lib/ansible/modules/cloud/amazon/ec2_vpc_vgw_facts.py
|
||||||
lib/ansible/modules/cloud/amazon/ec2_win_password.py
|
lib/ansible/modules/cloud/amazon/ec2_win_password.py
|
||||||
|
|
Loading…
Reference in a new issue