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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user