mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-25 19:21:53 +00:00
Merge pull request #1164 from liwei/fix-factory-status
factory: do not destroy vm factory when checking status
This commit is contained in:
commit
6f2c036601
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user