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:
- group: root
- mode: 644
{% if grains.cloud in ['gce'] %}
{% if grains.cloud is defined and grains.cloud in ['gce'] %}
/etc/kubernetes/manifests/nginx.json:
file:
- 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