mirror of
https://github.com/Red5d/docker-autocompose
synced 2026-01-16 05:28:03 +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)
|
} # to reuse an existing volume ... better to make that a choice? (cli argument)
|
||||||
elif mount["Type"] == "bind":
|
elif mount["Type"] == "bind":
|
||||||
mountpoints.append(mount["Source"] + ":" + destination)
|
mountpoints.append(mount["Source"] + ":" + destination)
|
||||||
values["volumes"] = mountpoints
|
values["volumes"] = sorted(mountpoints)
|
||||||
if len(volumes) == 0:
|
if len(volumes) == 0:
|
||||||
volumes = None
|
volumes = None
|
||||||
values["mounts"] = None # remove this temporary data from the returned data
|
values["mounts"] = None # remove this temporary data from the returned data
|
||||||
|
|||||||
Reference in New Issue
Block a user