Skip to content

Commit 60ec7a9

Browse files
committed
Handle undefined Ansible variable
The variable kolla_enable_prometheus_ceph_mgr_exporter can be undefined, leading to an error running the cephadm-commands-post.yml playbook.
1 parent 7a9dcd9 commit 60ec7a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etc/kayobe/cephadm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ cephadm_commands_post: "{{ cephadm_commands_post_default + cephadm_commands_post
9292
cephadm_commands_pre_default: []
9393
cephadm_commands_pre_extra: []
9494

95-
cephadm_commands_post_default: "{{ ['mgr module enable prometheus'] if kolla_enable_prometheus_ceph_mgr_exporter | bool else [] }}"
95+
cephadm_commands_post_default: "{{ ['mgr module enable prometheus'] if kolla_enable_prometheus_ceph_mgr_exporter | default(False) | bool else [] }}"
9696
cephadm_commands_post_extra: []
9797

9898
###############################################################################

0 commit comments

Comments
 (0)