Skip to content

Commit 7003cbb

Browse files
authored
Merge pull request #82 from stackhpc/bug_74
Fix undefined cephadm_host_labels
2 parents 24be969 + 1bf3fc4 commit 7003cbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/cephadm/templates/cluster.yml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ labels:
2121
{% if host in groups.get('ingress', []) %}
2222
- ingress
2323
{% endif %}
24-
{% if hostvars[host].cephadm_host_labels | length > 0 %}
25-
{{ hostvars[host].cephadm_host_labels }}
24+
{% if hostvars[host].get('cephadm_host_labels', []) | length > 0 %}
25+
{{ hostvars[host].get('cephadm_host_labels', []) }}
2626
{% endif %}
2727
{% endfor %}
2828
---

0 commit comments

Comments
 (0)