From ab405522f89f94c4a67c9e4000f0ac4fda02442e Mon Sep 17 00:00:00 2001 From: "YiLin.Li" Date: Thu, 3 Sep 2020 17:14:32 +0000 Subject: [PATCH] shim/runtime/v2/rune/v2: Fix the return value error of getCarrierKind If not set RuneCarrier(such as Pods), the getCarrierkind should return . Signed-off-by: Yilin Li --- shim/runtime/v2/rune/v2/rune.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shim/runtime/v2/rune/v2/rune.go b/shim/runtime/v2/rune/v2/rune.go index 0e0ee21..48821d6 100644 --- a/shim/runtime/v2/rune/v2/rune.go +++ b/shim/runtime/v2/rune/v2/rune.go @@ -138,7 +138,7 @@ func getCarrierKind(bundlePath string) (found bool, value rune.CarrierKind, err } v, ok := config.GetEnv(spec, constants.EnvKeyRuneCarrier) if !ok { - return + return true, rune.Empty, nil } value = rune.CarrierKind(v) if value == rune.Occlum || value == rune.Graphene || value == rune.Empty || value == rune.Skeleton { -- GitLab