From d32461388ff51ad781513ad47e013f6a443da960 Mon Sep 17 00:00:00 2001 From: sean-m-sullivan Date: Mon, 18 Jan 2021 12:46:43 -0600 Subject: [PATCH] syntax and lint fix --- awx_collection/plugins/modules/tower_job_launch.py | 4 ++-- awx_collection/plugins/modules/tower_workflow_launch.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/awx_collection/plugins/modules/tower_job_launch.py b/awx_collection/plugins/modules/tower_job_launch.py index fe6449fd8b..c2d0d53f81 100644 --- a/awx_collection/plugins/modules/tower_job_launch.py +++ b/awx_collection/plugins/modules/tower_job_launch.py @@ -225,8 +225,8 @@ def main(): if module.params.get(variable_name) and not job_template[check_vars_to_prompts[variable_name]]: param_errors.append("The field {0} was specified but the job template does not allow for it to be overridden".format(variable_name)) # Check if Either ask_variables_on_launch, or survey_enabled is enabled for use of extra vars. - if ( module.params.get('extra_vars') and not (job_template['ask_variables_on_launch'] or job_template['survey_enabled']): - param_errors.append("The field extra_vars was specified but the job template does not allow for it to be overridden") + if (module.params.get('extra_vars') and not (job_template['ask_variables_on_launch'] or job_template['survey_enabled']): + param_errors.append("The field extra_vars was specified but the job template does not allow for it to be overridden") if len(param_errors) > 0: module.fail_json(msg="Parameters specified which can not be passed into job template, see errors for details", **{'errors': param_errors}) diff --git a/awx_collection/plugins/modules/tower_workflow_launch.py b/awx_collection/plugins/modules/tower_workflow_launch.py index 9ccfbc5c1e..aebf890d56 100644 --- a/awx_collection/plugins/modules/tower_workflow_launch.py +++ b/awx_collection/plugins/modules/tower_workflow_launch.py @@ -160,7 +160,7 @@ def main(): param_errors.append("The field {0} was specified but the workflow job template does not allow for it to be overridden".format(variable_name)) # Check if Either ask_variables_on_launch, or survey_enabled is enabled for use of extra vars. if module.params.get('extra_vars') and not (workflow_job_template['ask_variables_on_launch'] or workflow_job_template['survey_enabled']): - param_errors.append("The field extra_vars was specified but the workflow job template does not allow for it to be overridden") + param_errors.append("The field extra_vars was specified but the workflow job template does not allow for it to be overridden") if len(param_errors) > 0: module.fail_json(msg="Parameters specified which can not be passed into workflow job template, see errors for details", errors=param_errors)