commit | cad230eea878ab16c29d0f3c5b6741ad67a6fb8b | [log] [tgz] |
---|---|---|
author | Doug Clow <dclow@momentfeed.com> | Thu Oct 26 14:50:15 2017 -0700 |
committer | Doug Clow <dclow@momentfeed.com> | Thu Oct 26 14:50:15 2017 -0700 |
tree | c8b6b0955fcba3d5b8d1b9bae268ce1c2b29f5e6 | |
parent | 3c3465ebd4bcbb800a46badfd66e74129450fbb4 [diff] |
Ensure stack works when no volumes are specified in the compose file.
diff --git a/docker/client/stack.sls b/docker/client/stack.sls index dc7a7cc..8bf7ae8 100644 --- a/docker/client/stack.sls +++ b/docker/client/stack.sls
@@ -56,7 +56,7 @@ {%- set path = None %} {%- endif %} - {%- if path != None and path not in compose.volume.keys() %} + {%- if path != None and path not in compose.get('volume', {}).keys() %} docker_{{ app }}_{{ name }}_volume_{{ path }}: file.directory: - name: {{ path }}