mirror of
https://github.com/Red5d/docker-autocompose
synced 2026-01-03 07:08:01 +00:00
Sort mountpoints
This commit is contained in:
@@ -247,7 +247,7 @@ def generate(cname, createvolumes=False):
|
||||
} # to reuse an existing volume ... better to make that a choice? (cli argument)
|
||||
elif mount["Type"] == "bind":
|
||||
mountpoints.append(mount["Source"] + ":" + destination)
|
||||
values["volumes"] = mountpoints
|
||||
values["volumes"] = sorted(mountpoints)
|
||||
if len(volumes) == 0:
|
||||
volumes = None
|
||||
values["mounts"] = None # remove this temporary data from the returned data
|
||||
|
||||
Reference in New Issue
Block a user