Skip to content

Commit da7e837

Browse files
authored
Merge pull request #769 from stackhpc/cephadm-commands-post-default-fix
Handle undefined Ansible variable
2 parents 890246f + 60ec7a9 commit da7e837

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)