Sort mountpoints

This commit is contained in:
Red5d
2023-07-28 23:58:04 -04:00
committed by GitHub
parent b07928353c
commit e1c0e23ff2

View File

@@ -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