diff --git a/podman/files/container.sh.jinja b/podman/files/container.sh.jinja index a7f9337..090921b 100644 --- a/podman/files/container.sh.jinja +++ b/podman/files/container.sh.jinja @@ -7,6 +7,7 @@ function pull_image(){ } +{% if pillar['containers'][container]['volumes'] is defined %} function create_volumes() { {% for volume, mounts in args['volumes'].items() -%} if ! podman volume exists {{ container }}-{{ volume }}; then @@ -14,6 +15,7 @@ function create_volumes() { fi {% endfor %} } +{% endif %} function create_container() { if ! podman container exists {{ container }};then