diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-07-29 21:57:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-29 21:57:08 +0200 |
commit | 7d635ac1c5ce61385dea009d29eceb90fea8db30 (patch) | |
tree | d8abdb860d316deea134dd1ba772ea8794c68b41 /libpod | |
parent | 71bb2889ff7e4234a29e6440f8740699640d7773 (diff) | |
parent | 40bf0649afcb0bff839e5cb52b03099b4e16a539 (diff) | |
download | podman-7d635ac1c5ce61385dea009d29eceb90fea8db30.tar.gz podman-7d635ac1c5ce61385dea009d29eceb90fea8db30.tar.bz2 podman-7d635ac1c5ce61385dea009d29eceb90fea8db30.zip |
Merge pull request #3656 from jwhonce/wip/env
Fix commit --changes env=X=Y
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/container_commit.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpod/container_commit.go b/libpod/container_commit.go index 17586bfad..8dfeee9b8 100644 --- a/libpod/container_commit.go +++ b/libpod/container_commit.go @@ -19,7 +19,7 @@ import ( // ContainerCommitOptions is a struct used to commit a container to an image // It uses buildah's CommitOptions as a base. Long-term we might wish to // add these to the buildah struct once buildah is more integrated with -//libpod +// libpod type ContainerCommitOptions struct { buildah.CommitOptions Pause bool @@ -177,6 +177,7 @@ func (c *Container) Commit(ctx context.Context, destImage string, options Contai return nil, errors.Errorf("invalid env variable %q: not defined in your environment", name) } } else { + name = change[0] val = strings.Join(change[1:], " ") } if !isEnvCleared { // Multiple values are valid, only clear once. |