Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
cli: fix factory assignment
Browse files Browse the repository at this point in the history
A stupid typo...

Signed-off-by: Peng Tao <[email protected]>
  • Loading branch information
bergwolf committed Aug 1, 2018
1 parent fc45d2e commit 0541a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 0541a5f

Please sign in to comment.