Przeglądaj źródła

Don't fail if graph is empty

Change-Id: Id8fbf6f94533346af6ceea10257cd4d2dd745a6a
pull/73/head
Filip Pytloun 6 lat temu
rodzic
commit
7d9750c986
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      salt/meta/salt.yml

+ 1
- 1
salt/meta/salt.yml Wyświetl plik

@@ -3,7 +3,7 @@
{%- set grains_fragment_file = service_name+'/meta/meta.yml' %}
{%- macro load_grains_file() %}{% include grains_fragment_file ignore missing %}{% endmacro %}
{%- set grains_yaml = load_grains_file()|load_yaml %}
{%- if grains_yaml is mapping %}
{%- if grains_yaml is mapping and grains_yaml.graph %}
{%- for node in grains_yaml.graph if grains_yaml.graph %}
{%- do service_grains.salt.graph.append(node) %}
{%- endfor %}

Ładowanie…
Anuluj
Zapisz