We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 24be969 + 1bf3fc4 commit 7003cbbCopy full SHA for 7003cbb
roles/cephadm/templates/cluster.yml.j2
@@ -21,8 +21,8 @@ labels:
21
{% if host in groups.get('ingress', []) %}
22
- ingress
23
{% endif %}
24
-{% if hostvars[host].cephadm_host_labels | length > 0 %}
25
-{{ hostvars[host].cephadm_host_labels }}
+{% if hostvars[host].get('cephadm_host_labels', []) | length > 0 %}
+{{ hostvars[host].get('cephadm_host_labels', []) }}
26
27
{% endfor %}
28
---
0 commit comments