diff options
author | sean-m-sullivan <ssulliva@redhat.com> | 2021-01-18 20:05:28 +0100 |
---|---|---|
committer | sean-m-sullivan <ssulliva@redhat.com> | 2021-01-18 20:05:28 +0100 |
commit | 3ae133d39dfca97c3ddfdfac8285d4bd29ecb2c8 (patch) | |
tree | 020b0f1ea0639d03684f515b34c264b0f365fb84 /awx_collection | |
parent | Merge branch 'survey_logic' of github.com:sean-m-sullivan/awx into survey_logic (diff) | |
download | awx-3ae133d39dfca97c3ddfdfac8285d4bd29ecb2c8.tar.xz awx-3ae133d39dfca97c3ddfdfac8285d4bd29ecb2c8.zip |
syntax and lint fix
Diffstat (limited to 'awx_collection')
-rw-r--r-- | awx_collection/plugins/modules/tower_job_launch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/awx_collection/plugins/modules/tower_job_launch.py b/awx_collection/plugins/modules/tower_job_launch.py index c2d0d53f81..1d37548d2b 100644 --- a/awx_collection/plugins/modules/tower_job_launch.py +++ b/awx_collection/plugins/modules/tower_job_launch.py @@ -225,7 +225,7 @@ 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']): + 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}) |