提交 ab405522 编写于 作者: Y YiLin.Li

shim/runtime/v2/rune/v2: Fix the return value error of getCarrierKind

If not set RuneCarrier(such as Pods), the getCarrierkind should return
<true, rune.Empty, nil>.
Signed-off-by: NYilin Li <YiLin.Li@linux.alibaba.com>
上级 6c4d662e
1 合并请求!146shim/runtime/v2/rune/v2: Fix the return value error of getCarrierKind
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部