Explorar o código

service: Use OrderedDict to preserve volumes order on versions prior 3.6.

Signed-off-by: Antony MECHIN <[email protected]>
Antony MECHIN %!s(int64=7) %!d(string=hai) anos
pai
achega
bf46a6cc60
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compose/service.py

+ 1 - 1
compose/service.py

@@ -1429,7 +1429,7 @@ def merge_volume_bindings(volumes, tmpfs, previous_container, mounts):
     """
     affinity = {}
 
-    volume_bindings = dict(
+    volume_bindings = OrderedDict(
         build_volume_binding(volume)
         for volume in volumes
         if volume.external