Skip to content

Commit

Permalink
forcing verbosity to be read as a string, to fix bug redhat-cop#801 (r…
Browse files Browse the repository at this point in the history
  • Loading branch information
djdanielsson authored and Przemyslaw Kalitowski committed Nov 22, 2024
1 parent 0e06f20 commit 9879802
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelogs/fragments/verbosity_bug.yml
Original file line number Diff line number Diff line change
@@ -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
...
2 changes: 1 addition & 1 deletion roles/job_templates/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)) }}"
Expand Down

0 comments on commit 9879802

Please sign in to comment.