From 6ed293ba94a0751b3d5c0b332978b5ccb8222768 Mon Sep 17 00:00:00 2001 From: "Justin Terry (VM)" Date: Mon, 28 Jan 2019 14:04:14 -0800 Subject: [PATCH] Fix bug in shim path lookup Signed-off-by: Justin Terry (VM) --- runtime/v2/shim/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/v2/shim/util.go b/runtime/v2/shim/util.go index 75878fb3f..a4e300f86 100644 --- a/runtime/v2/shim/util.go +++ b/runtime/v2/shim/util.go @@ -71,9 +71,9 @@ func Command(ctx context.Context, runtime, containerdAddress, path string, cmdAr // execute the shim found there. testPath := filepath.Join(filepath.Dir(self), name) if _, serr := os.Stat(testPath); serr == nil { - path = testPath + cmdPath = testPath } - if path == "" { + if cmdPath == "" { return nil, errors.Wrapf(os.ErrNotExist, "runtime %q binary not installed %q", runtime, name) } }