mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-22 16:54:25 +01:00
cli: fix factory assignment
A stupid typo... Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user