浏览代码

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

正在加载...
取消
保存