From ea842cd609c098067df706d7201f18799a587da6 Mon Sep 17 00:00:00 2001 From: David Danielsson Date: Tue, 2 Apr 2024 16:46:30 -0500 Subject: [PATCH 1/2] forcing verbosity to be read as a string, to fix bug #801 --- changelogs/fragments/verbosity_bug.yml | 4 ++++ roles/job_templates/tasks/main.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/verbosity_bug.yml diff --git a/changelogs/fragments/verbosity_bug.yml b/changelogs/fragments/verbosity_bug.yml new file mode 100644 index 000000000..0e5b8bff6 --- /dev/null +++ b/changelogs/fragments/verbosity_bug.yml @@ -0,0 +1,4 @@ +--- +bugfixes: + - fixed a bug where when verbosity was set to 0 it was being dropped and value was not being pushed to controller +... \ No newline at end of file diff --git a/roles/job_templates/tasks/main.yml b/roles/job_templates/tasks/main.yml index 315c3ab73..ae056a46f 100644 --- a/roles/job_templates/tasks/main.yml +++ b/roles/job_templates/tasks/main.yml @@ -15,7 +15,7 @@ credentials: "{{ __controller_template_item.credentials | default(__controller_template_item.related.credentials | default([]) | map(attribute='name') | list) | default(omit, true) }}" forks: "{{ __controller_template_item.forks | default((0 if controller_configuration_job_templates_enforce_defaults else omit), true) }}" limit: "{{ __controller_template_item.limit | default(('' if controller_configuration_job_templates_enforce_defaults else omit), true) }}" - verbosity: "{{ __controller_template_item.verbosity | default((0 if controller_configuration_job_templates_enforce_defaults else omit), true) }}" + verbosity: "{{ (__controller_template_item.verbosity | string) | default((0 if controller_configuration_job_templates_enforce_defaults else omit), true) }}" extra_vars: "{{ __controller_template_item.extra_vars | default(({} if controller_configuration_job_templates_enforce_defaults else omit), true) }}" job_tags: "{{ __controller_template_item.job_tags | default(('' if controller_configuration_job_templates_enforce_defaults else omit), true) }}" force_handlers: "{{ __controller_template_item.force_handlers | default((false if controller_configuration_job_templates_enforce_defaults else omit)) }}" From be6a2c824b7168b34a40297c5293e59433a08a3e Mon Sep 17 00:00:00 2001 From: Sean Sullivan Date: Tue, 2 Apr 2024 17:56:12 -0400 Subject: [PATCH 2/2] Update verbosity_bug.yml --- changelogs/fragments/verbosity_bug.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/verbosity_bug.yml b/changelogs/fragments/verbosity_bug.yml index 0e5b8bff6..b80072e16 100644 --- a/changelogs/fragments/verbosity_bug.yml +++ b/changelogs/fragments/verbosity_bug.yml @@ -1,4 +1,4 @@ --- bugfixes: - fixed a bug where when verbosity was set to 0 it was being dropped and value was not being pushed to controller -... \ No newline at end of file +...