diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-11 04:07:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 04:07:18 +0100 |
commit | 72dcc45f5ad7cb6f8b45305694bd6675d65989d8 (patch) | |
tree | 5fa1fe9cda77a7047aaf30c91e139ec284c0ec3a /cmd/podman | |
parent | 34c9aeaffa2a8a0e9ef282e8480d6199fdedd529 (diff) | |
parent | d99f2ee78478853803c6ae25be52f2bd677e9cec (diff) | |
download | podman-72dcc45f5ad7cb6f8b45305694bd6675d65989d8.tar.gz podman-72dcc45f5ad7cb6f8b45305694bd6675d65989d8.tar.bz2 podman-72dcc45f5ad7cb6f8b45305694bd6675d65989d8.zip |
Merge pull request #5156 from mheon/fix_entrypoint_format
Remove incorrect validation of --change for commit
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/commit.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/cmd/podman/commit.go b/cmd/podman/commit.go index 604e8d31c..b4d249c66 100644 --- a/cmd/podman/commit.go +++ b/cmd/podman/commit.go @@ -6,7 +6,6 @@ import ( "github.com/containers/libpod/cmd/podman/cliconfig" "github.com/containers/libpod/pkg/adapter" - "github.com/containers/libpod/pkg/util" "github.com/pkg/errors" "github.com/spf13/cobra" ) @@ -65,17 +64,6 @@ func commitCmd(c *cliconfig.CommitValues) error { if len(args) > 1 { reference = args[1] } - if c.Flag("change").Changed { - for _, change := range c.Change { - splitChange := strings.Split(strings.ToUpper(change), "=") - if len(splitChange) == 1 { - splitChange = strings.Split(strings.ToUpper(change), " ") - } - if !util.StringInSlice(splitChange[0], ChangeCmds) { - return errors.Errorf("invalid syntax for --change: %s", change) - } - } - } iid, err := runtime.Commit(getContext(), c, container, reference) if err != nil { |