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

pull/6/head
litian54 2015-04-10 18:27:22 -07:00
parent fff6cebb5f
commit 36ef786228
1 changed files with 1 additions and 1 deletions

View File

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