diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-01-18 16:05:35 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2022-01-19 13:03:58 -0500 |
commit | c674d3cc756742d2987d6f392f502e39673a5044 (patch) | |
tree | 8f2668c6b1ce670fdc1d4a7590ed62a410ebbfad /pkg/api/handlers/compat/images.go | |
parent | 1c81b67341300853d7fe9b6568b247e579c34969 (diff) | |
download | podman-c674d3cc756742d2987d6f392f502e39673a5044.tar.gz podman-c674d3cc756742d2987d6f392f502e39673a5044.tar.bz2 podman-c674d3cc756742d2987d6f392f502e39673a5044.zip |
Handle changes in docker compat mode
Fixes: https://github.com/containers/podman/issues/12830
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/api/handlers/compat/images.go')
-rw-r--r-- | pkg/api/handlers/compat/images.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/images.go b/pkg/api/handlers/compat/images.go index 97fa4ddad..23a9b12a3 100644 --- a/pkg/api/handlers/compat/images.go +++ b/pkg/api/handlers/compat/images.go @@ -138,7 +138,9 @@ func CommitContainer(w http.ResponseWriter, r *http.Request) { options.Message = query.Comment options.Author = query.Author options.Pause = query.Pause - options.Changes = strings.Fields(query.Changes) + if query.Changes != "" { + options.Changes = strings.Split(query.Changes, ",") + } ctr, err := runtime.LookupContainer(query.Container) if err != nil { utils.Error(w, "Something went wrong.", http.StatusNotFound, err) |