瀏覽代碼

Don't fail if graph is empty

Change-Id: Id8fbf6f94533346af6ceea10257cd4d2dd745a6a
pull/73/head
Filip Pytloun 6 年之前
父節點
當前提交
7d9750c986
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      salt/meta/salt.yml

+ 1
- 1
salt/meta/salt.yml 查看文件

@@ -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…
取消
儲存