Closed nerg4l closed 1 year ago
On the first existing element of the mount list under a dokku_storage the iteration stops because of return.
mount
dokku_storage
return
- name: "Mount persistent storage" dokku_storage: app: example-app mounts: - /var/lib/dokku/data/storage/mount1:/app/mount1 - /var/lib/dokku/data/storage/mount2/app/mount2 - /var/lib/dokku/data/storage/mount3:/app/mount3
In the above case if /var/lib/dokku/data/storage/mount2/app/mount2 already mounted then /var/lib/dokku/data/storage/mount1:/app/mount1 would be added but not /var/lib/dokku/data/storage/mount3:/app/mount3
/var/lib/dokku/data/storage/mount2/app/mount2
/var/lib/dokku/data/storage/mount1:/app/mount1
/var/lib/dokku/data/storage/mount3:/app/mount3
On the first existing element of the
mount
list under adokku_storage
the iteration stops because ofreturn
.In the above case if
/var/lib/dokku/data/storage/mount2/app/mount2
already mounted then/var/lib/dokku/data/storage/mount1:/app/mount1
would be added but not/var/lib/dokku/data/storage/mount3:/app/mount3