summaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-08-17 23:06:39 +0000
committerGitHub <noreply@github.com>2022-08-17 23:06:39 +0000
commit1f0c3d52628e7c5b22ee500194155bdd20ad271f (patch)
tree1a311e7398ccb5c58e93c4f10d55f642e356b737 /pkg/api
parentf63da351f2be70a8d39dfed9554371f27e1780a1 (diff)
parentaa197a65ff245f4d244968fd6010537a76a42e10 (diff)
downloadpodman-1f0c3d52628e7c5b22ee500194155bdd20ad271f.tar.gz
podman-1f0c3d52628e7c5b22ee500194155bdd20ad271f.tar.bz2
podman-1f0c3d52628e7c5b22ee500194155bdd20ad271f.zip
Merge pull request #15368 from m0duspwnens/api_sort_hc_binds
sort hc.Binds returned from compat api
Diffstat (limited to 'pkg/api')
-rw-r--r--pkg/api/handlers/compat/containers.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/api/handlers/compat/containers.go b/pkg/api/handlers/compat/containers.go
index ae063dc9f..0b82c48f6 100644
--- a/pkg/api/handlers/compat/containers.go
+++ b/pkg/api/handlers/compat/containers.go
@@ -467,6 +467,7 @@ func LibpodToContainerJSON(l *libpod.Container, sz bool) (*types.ContainerJSON,
if err := json.Unmarshal(h, &hc); err != nil {
return nil, err
}
+ sort.Strings(hc.Binds)
// k8s-file == json-file
if hc.LogConfig.Type == define.KubernetesLogging {