From b85b217f55993955da9ad0cae7735747b2f24390 Mon Sep 17 00:00:00 2001 From: baude Date: Thu, 8 Mar 2018 15:45:52 -0600 Subject: Stage3 Image Library This represents the stage3 implementation for the image library. At this point, we are moving the image-centric functions to pkg/image including migration of args and object-oriented references. This is a not a one-for-one migration of funcs and some funcs will need to continue to reside in runtime_img as they are overly specific to libpod and probably not useful to others. Signed-off-by: baude Closes: #484 Approved by: baude --- cmd/podman/exec.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd/podman/exec.go') diff --git a/cmd/podman/exec.go b/cmd/podman/exec.go index 07ef3a0cd..81b69953b 100644 --- a/cmd/podman/exec.go +++ b/cmd/podman/exec.go @@ -6,6 +6,7 @@ import ( "github.com/pkg/errors" "github.com/projectatomic/libpod/libpod" + "github.com/projectatomic/libpod/pkg/util" "github.com/urfave/cli" ) @@ -89,7 +90,7 @@ func execCmd(c *cli.Context) error { // key and value to the environment variables. this is needed to set // PATH for example. for k, v := range defaultEnvVariables { - if !libpod.StringInSlice(k, userEnvKeys) { + if !util.StringInSlice(k, userEnvKeys) { envs = append(envs, fmt.Sprintf("%s=%s", k, v)) } } -- cgit v1.2.3-54-g00ecf