From 0541a5fc77690a571a5ddf8cce7b86d9dd0bbf1e Mon Sep 17 00:00:00 2001 From: Peng Tao Date: Fri, 27 Jul 2018 11:12:41 +0800 Subject: [PATCH] cli: fix factory assignment A stupid typo... Signed-off-by: Peng Tao --- cli/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/create.go b/cli/create.go index 6de000900..5635633f0 100644 --- a/cli/create.go +++ b/cli/create.go @@ -126,7 +126,7 @@ func create(containerID, bundlePath, console, pidFilePath string, detach bool, kataLog.WithError(err).Warn("create vm factory failed") } } - if err != nil { + if err == nil { vci.SetFactory(f) } }