Skip to content

Commit

Permalink
factory: do not destroy vm factory when checking status
Browse files Browse the repository at this point in the history
Fixes: kata-containers#1163

Signed-off-by: Wei Li <[email protected]>
  • Loading branch information
liwei committed Jan 23, 2019
1 parent 5f7fcd7 commit d78a62d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cli/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,10 @@ var statusFactoryCommand = cli.Command{
},
}
kataLog.WithField("factory", factoryConfig).Info("load vm factory")
f, err := vf.NewFactory(ctx, factoryConfig, true)
_, err := vf.NewFactory(ctx, factoryConfig, true)
if err != nil {
fmt.Fprintln(defaultOutputFile, "vm factory is off")
} else {
f.CloseFactory(ctx)
fmt.Fprintln(defaultOutputFile, "vm factory is on")
}
} else {
Expand Down

0 comments on commit d78a62d

Please sign in to comment.