From cd45cfec309c2c0ac7a4abadc92b17c87b01e3e5 Mon Sep 17 00:00:00 2001 From: sean-m-sullivan Date: Mon, 31 Aug 2020 15:53:54 -0500 Subject: [PATCH] updated doc and pep8 --- awx_collection/plugins/modules/tower_job_launch.py | 5 +++-- awx_collection/plugins/modules/tower_job_wait.py | 1 + awx_collection/plugins/modules/tower_workflow_launch.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/awx_collection/plugins/modules/tower_job_launch.py b/awx_collection/plugins/modules/tower_job_launch.py index 11ebb14110..7e2dca0e38 100644 --- a/awx_collection/plugins/modules/tower_job_launch.py +++ b/awx_collection/plugins/modules/tower_job_launch.py @@ -84,7 +84,7 @@ options: wait: description: - Wait for the job to complete. - default: True + default: False type: bool interval: description: @@ -183,7 +183,7 @@ def main(): optional_args['credential_passwords'] = module.params.get('credential_passwords') wait = module.params.get('wait') interval = module.params.get('interval') - timeout = module.params.get('timeout') + timeout = module.params.get('timeout') # Create a datastructure to pass into our job launch post_data = {} @@ -259,5 +259,6 @@ def main(): 'status': results['json']['status'], }) + if __name__ == '__main__': main() diff --git a/awx_collection/plugins/modules/tower_job_wait.py b/awx_collection/plugins/modules/tower_job_wait.py index 46bb80d007..6f71a1be5b 100644 --- a/awx_collection/plugins/modules/tower_job_wait.py +++ b/awx_collection/plugins/modules/tower_job_wait.py @@ -149,5 +149,6 @@ def main(): module.exit_json(**module.json_output) + if __name__ == '__main__': main() diff --git a/awx_collection/plugins/modules/tower_workflow_launch.py b/awx_collection/plugins/modules/tower_workflow_launch.py index 8267e9352c..f8ab793bad 100644 --- a/awx_collection/plugins/modules/tower_workflow_launch.py +++ b/awx_collection/plugins/modules/tower_workflow_launch.py @@ -176,7 +176,7 @@ def main(): if not wait: module.exit_json(**module.json_output) - + # Invoke wait function module.wait_on_url( url=result['json']['url'],