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.
1 parent 24be969 commit 1bf3fc4Copy full SHA for 1bf3fc4
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