diff options
author | Aditya R <arajan@redhat.com> | 2022-04-08 17:49:08 +0530 |
---|---|---|
committer | Aditya R <arajan@redhat.com> | 2022-04-08 18:43:37 +0530 |
commit | 0cebd158b6d8da1828b1255982e27fe9224310d0 (patch) | |
tree | c479b4c282323b8a800d0d3a336e0e1f2894f072 /libpod/container_inspect.go | |
parent | 0c9c3e6714905fbb493e0b634e09b56ae096592e (diff) | |
download | podman-0cebd158b6d8da1828b1255982e27fe9224310d0.tar.gz podman-0cebd158b6d8da1828b1255982e27fe9224310d0.tar.bz2 podman-0cebd158b6d8da1828b1255982e27fe9224310d0.zip |
container,inspect: convert Entrypoint to array instead of a string
Convert container entrypoint from string to an array inorder to make
sure there is parity between `podman inspect` and `docker inspect`
Signed-off-by: Aditya R <arajan@redhat.com>
Diffstat (limited to 'libpod/container_inspect.go')
-rw-r--r-- | libpod/container_inspect.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_inspect.go b/libpod/container_inspect.go index f2a2c2d16..c9d0b8a6c 100644 --- a/libpod/container_inspect.go +++ b/libpod/container_inspect.go @@ -367,7 +367,7 @@ func (c *Container) generateInspectContainerConfig(spec *spec.Spec) *define.Insp // Leave empty if not explicitly overwritten by user if len(c.config.Entrypoint) != 0 { - ctrConfig.Entrypoint = strings.Join(c.config.Entrypoint, " ") + ctrConfig.Entrypoint = c.config.Entrypoint } if len(c.config.Labels) != 0 { |