summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Patterson <josh.patterson@securityonionsolutions.com>2022-08-17 14:39:32 -0400
committerMatthew Heon <mheon@redhat.com>2022-09-06 13:55:57 -0400
commit45672c61d771bea65c8072c6c627179ee7279cb7 (patch)
tree6d4b843b9db0546638d7c5a926fb88f357fa0533
parent7c68167f60c2dbfae122e5133b7e9f5a4b193d02 (diff)
downloadpodman-45672c61d771bea65c8072c6c627179ee7279cb7.tar.gz
podman-45672c61d771bea65c8072c6c627179ee7279cb7.tar.bz2
podman-45672c61d771bea65c8072c6c627179ee7279cb7.zip
sort hc.Binds returned from compat api
Signed-off-by: Josh Patterson <josh.patterson@securityonionsolutions.com>
-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 {