Skip to content

Commit f262b8e

Browse files
author
Tobias Richter
committed
Fix deprecation warnings
1 parent a78982b commit f262b8e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tasks/main.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
- "{{ jenkins_plugins_updates_base_url }}"
2323
- "jenkins_plugins_updates_update_site_url"
2424
- "{{ jenkins_plugins_updates_update_site_url }}"
25-
when: jenkins_plugins_debug
25+
when: jenkins_plugins_debug | bool
2626

2727
- name: "Configure Update Center"
2828
jenkins_script:
@@ -76,7 +76,7 @@
7676
- "{{ jenkins_plugins_install_plugins }}"
7777
- "jenkins_plugins_uninstall_plugins"
7878
- "{{ jenkins_plugins_uninstall_plugins }}"
79-
when: jenkins_plugins_debug
79+
when: jenkins_plugins_debug | bool
8080

8181
- name: Install/Manage Jenkins plugins.
8282
jenkins_plugin:
@@ -139,5 +139,5 @@
139139
{{ jenkins_facts_plugins_failed }}
140140
141141
when:
142-
- jenkins_plugins_failedplugins_check
143-
- (_jenkins_plugins_install_result.changed or _jenkins_plugins_uninstall_result.changed)
142+
- jenkins_plugins_failedplugins_check | bool
143+
- (_jenkins_plugins_install_result.changed | bool or _jenkins_plugins_uninstall_result.changed | bool)

0 commit comments

Comments
 (0)