1
0
mirror of https://github.com/rancher/os.git synced 2025-09-18 16:27:31 +00:00

do not sort Maporslice keys

This commit is contained in:
Ivan Mikushin
2015-05-18 22:10:38 +05:00
parent 59029a49a8
commit d0476e1308

View File

@@ -94,7 +94,7 @@ func getHash(containerCfg *config.ContainerConfig) string {
}
case project.Maporslice:
sliceKeys := s.Slice()
sort.Strings(sliceKeys)
// do not sort environment keys as the order matters
for _, sliceKey := range sliceKeys {
io.WriteString(hash, fmt.Sprintf("%s, ", sliceKey))