From 3bc5975b9067e6cb97fd59db06d36da1d28ff560 Mon Sep 17 00:00:00 2001 From: beeankha Date: Wed, 15 Apr 2020 09:37:54 -0400 Subject: [PATCH] Remove 'supports_check_mode' text from converted Collection modules --- awx_collection/plugins/modules/tower_credential.py | 2 +- awx_collection/plugins/modules/tower_job_cancel.py | 5 +---- awx_collection/plugins/modules/tower_job_list.py | 1 - awx_collection/plugins/modules/tower_license.py | 1 - awx_collection/plugins/modules/tower_settings.py | 1 - awx_collection/plugins/modules/tower_workflow_launch.py | 2 +- awx_collection/tools/templates/tower_module.j2 | 2 +- 7 files changed, 4 insertions(+), 10 deletions(-) diff --git a/awx_collection/plugins/modules/tower_credential.py b/awx_collection/plugins/modules/tower_credential.py index 042000c8c6..5e0717526b 100644 --- a/awx_collection/plugins/modules/tower_credential.py +++ b/awx_collection/plugins/modules/tower_credential.py @@ -348,7 +348,7 @@ def main(): ) # Create a module for ourselves - module = TowerModule(argument_spec=argument_spec, supports_check_mode=True, required_one_of=[['kind', 'credential_type']]) + module = TowerModule(argument_spec=argument_spec, required_one_of=[['kind', 'credential_type']]) # Extract our parameters name = module.params.get('name') diff --git a/awx_collection/plugins/modules/tower_job_cancel.py b/awx_collection/plugins/modules/tower_job_cancel.py index b92a3134a1..867a81083c 100644 --- a/awx_collection/plugins/modules/tower_job_cancel.py +++ b/awx_collection/plugins/modules/tower_job_cancel.py @@ -68,10 +68,7 @@ def main(): ) # Create a module for ourselves - module = TowerModule( - argument_spec=argument_spec, - supports_check_mode=True, - ) + module = TowerModule(argument_spec=argument_spec) # Extract our parameters job_id = module.params.get('job_id') diff --git a/awx_collection/plugins/modules/tower_job_list.py b/awx_collection/plugins/modules/tower_job_list.py index ad105ed631..1bab24cf24 100644 --- a/awx_collection/plugins/modules/tower_job_list.py +++ b/awx_collection/plugins/modules/tower_job_list.py @@ -102,7 +102,6 @@ def main(): # Create a module for ourselves module = TowerModule( argument_spec=argument_spec, - supports_check_mode=True, mutually_exclusive=[ ('page', 'all_pages'), ] diff --git a/awx_collection/plugins/modules/tower_license.py b/awx_collection/plugins/modules/tower_license.py index 1d8fdefa3a..95b0796e7e 100644 --- a/awx_collection/plugins/modules/tower_license.py +++ b/awx_collection/plugins/modules/tower_license.py @@ -62,7 +62,6 @@ def main(): data=dict(type='dict', required=True), eula_accepted=dict(type='bool', required=True), ), - supports_check_mode=True ) json_output = {'changed': False} diff --git a/awx_collection/plugins/modules/tower_settings.py b/awx_collection/plugins/modules/tower_settings.py index 6963d23beb..b761f5cccc 100644 --- a/awx_collection/plugins/modules/tower_settings.py +++ b/awx_collection/plugins/modules/tower_settings.py @@ -117,7 +117,6 @@ def main(): # Create a module for ourselves module = TowerModule( argument_spec=argument_spec, - supports_check_mode=True, required_one_of=[['name', 'settings']], mutually_exclusive=[['name', 'settings']], required_if=[['name', 'present', ['value']]] diff --git a/awx_collection/plugins/modules/tower_workflow_launch.py b/awx_collection/plugins/modules/tower_workflow_launch.py index 6b78e877e2..52a6cdd771 100644 --- a/awx_collection/plugins/modules/tower_workflow_launch.py +++ b/awx_collection/plugins/modules/tower_workflow_launch.py @@ -120,7 +120,7 @@ def main(): ) # Create a module for ourselves - module = TowerModule(argument_spec=argument_spec, supports_check_mode=True) + module = TowerModule(argument_spec=argument_spec) optional_args = {} # Extract our parameters diff --git a/awx_collection/tools/templates/tower_module.j2 b/awx_collection/tools/templates/tower_module.j2 index 9f61e1b8fe..25d9e0a08a 100644 --- a/awx_collection/tools/templates/tower_module.j2 +++ b/awx_collection/tools/templates/tower_module.j2 @@ -143,7 +143,7 @@ def main(): ) # Create a module for ourselves - module = TowerModule(argument_spec=argument_spec, supports_check_mode=True) + module = TowerModule(argument_spec=argument_spec) # Extract our parameters {% for option in item['json']['actions']['POST'] %}