cli: fix factory assignment

A stupid typo...

Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
Peng Tao 2018-07-27 11:12:41 +08:00
parent fc45d2e3d1
commit 0541a5fc77

View File

@ -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)
}
}