diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-10-11 20:29:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 20:29:05 +0200 |
commit | 2fcec59445267e8c8e06005539701a172d3db8a5 (patch) | |
tree | 193efc5f2e57ccedb0bf07d2423960cea2dfed95 /pkg/specgen | |
parent | 00ebf3cf1885fc95c3c36021e717db1f1e7d63be (diff) | |
parent | 6b2939884cd774fa70304a2a198e9c572242eda9 (diff) | |
download | podman-2fcec59445267e8c8e06005539701a172d3db8a5.tar.gz podman-2fcec59445267e8c8e06005539701a172d3db8a5.tar.bz2 podman-2fcec59445267e8c8e06005539701a172d3db8a5.zip |
Merge pull request #11920 from jwhonce/issues/11891
Use SplitN(2) when copying env variables
Diffstat (limited to 'pkg/specgen')
-rw-r--r-- | pkg/specgen/generate/kube/kube.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/specgen/generate/kube/kube.go b/pkg/specgen/generate/kube/kube.go index e93462008..6eebc6376 100644 --- a/pkg/specgen/generate/kube/kube.go +++ b/pkg/specgen/generate/kube/kube.go @@ -257,7 +257,7 @@ func ToSpecGen(ctx context.Context, opts *CtrSpecGenOptions) (*specgen.SpecGener // Environment Variables envs := map[string]string{} for _, env := range imageData.Config.Env { - keyval := strings.Split(env, "=") + keyval := strings.SplitN(env, "=", 2) envs[keyval[0]] = keyval[1] } |