Skip to content

Commit

Permalink
Fix if environment is not included in pillar
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-parlette committed Jun 29, 2017
1 parent c01e23a commit 1ec33ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap/saltstack-formula/docker/service.sls
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ template-container:
- {{ template.directory }}:/path/on/container:rw
- port_bindings:
- {{ template.port }}:3000
{%- if template.environment %}
{%- if template['environment'] is defined %}
- environment:
{%- for env, value in template.environment.items() %}
- {{ env }}: {{ value|yaml_squote }}
Expand Down

0 comments on commit 1ec33ea

Please sign in to comment.