diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-08-23 10:51:21 -0400 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2022-09-06 14:17:01 -0400 |
commit | 455a363bf1eb4040e95105cb22872c7fc529e08f (patch) | |
tree | 54055f72f296b9ae95a2fb0d814deecde7ec1b46 /pkg/specgenutil | |
parent | d40175e0aebc64a24f4987d2d1a60f3d7cbe7375 (diff) | |
download | podman-455a363bf1eb4040e95105cb22872c7fc529e08f.tar.gz podman-455a363bf1eb4040e95105cb22872c7fc529e08f.tar.bz2 podman-455a363bf1eb4040e95105cb22872c7fc529e08f.zip |
Allow podman to run in an environment with keys containing spaces
Fixes: https://github.com/containers/podman/issues/15251
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/specgenutil')
-rw-r--r-- | pkg/specgenutil/specgen.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pkg/specgenutil/specgen.go b/pkg/specgenutil/specgen.go index 9a7d50947..9eb386e81 100644 --- a/pkg/specgenutil/specgen.go +++ b/pkg/specgenutil/specgen.go @@ -355,10 +355,7 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *entities.ContainerCreateOptions // First transform the os env into a map. We need it for the labels later in // any case. - osEnv, err := envLib.ParseSlice(os.Environ()) - if err != nil { - return fmt.Errorf("error parsing host environment variables: %w", err) - } + osEnv := envLib.Map(os.Environ()) if !s.EnvHost { s.EnvHost = c.EnvHost |