update mine instead of failing highstate if no node_data

This commit is contained in:
Josh Patterson
2025-03-24 19:49:24 -04:00
parent 0fe3038802
commit 8f40b66e3b
6 changed files with 58 additions and 13 deletions

View File

@@ -24,6 +24,7 @@
{% endif %}
{% endfor %}
{% if node_types %}
node_data:
{% for node_type, host_values in node_types.items() %}
{% for hostname, details in host_values.items() %}
@@ -33,3 +34,6 @@ node_data:
role: {{node_type}}
{% endfor %}
{% endfor %}
{% else %}
node_data: False
{% endif %}