diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-01-19 17:19:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 17:19:00 -0500 |
commit | d2c892c7299a6da07f84a6c99dace833dc946ce5 (patch) | |
tree | 1390219e3a8dc964066b5634ef83b693017e9312 /pkg | |
parent | 5e2fcf813d54980df00976a01fca571b7007ae16 (diff) | |
parent | c674d3cc756742d2987d6f392f502e39673a5044 (diff) | |
download | podman-d2c892c7299a6da07f84a6c99dace833dc946ce5.tar.gz podman-d2c892c7299a6da07f84a6c99dace833dc946ce5.tar.bz2 podman-d2c892c7299a6da07f84a6c99dace833dc946ce5.zip |
Merge pull request #12914 from rhatdan/commit
Handle changes in docker compat mode
Diffstat (limited to 'pkg')
-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) |