Browse Source

Don't fail if graph is empty

Change-Id: Id8fbf6f94533346af6ceea10257cd4d2dd745a6a
pull/73/head
Filip Pytloun 6 years ago
parent
commit
7d9750c986
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      salt/meta/salt.yml

+ 1
- 1
salt/meta/salt.yml View File

@@ -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 %}

Loading…
Cancel
Save