Commit 36ef7862 authored by litian54's avatar litian54

Fix Rendering SLS 'base:nginx' failed if 'cloud' is not defined in minion grains

parent fff6cebb
...@@ -28,7 +28,7 @@ nginx: ...@@ -28,7 +28,7 @@ nginx:
- group: root - group: root
- mode: 644 - mode: 644
{% if grains.cloud in ['gce'] %} {% if grains.cloud is defined and grains.cloud in ['gce'] %}
/etc/kubernetes/manifests/nginx.json: /etc/kubernetes/manifests/nginx.json:
file: file:
- managed - managed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment