mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-25 11:13:15 +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")
|
kataLog.WithField("factory", factoryConfig).Info("load vm factory")
|
||||||
f, err := vf.NewFactory(ctx, factoryConfig, true)
|
_, err := vf.NewFactory(ctx, factoryConfig, true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintln(defaultOutputFile, "vm factory is off")
|
fmt.Fprintln(defaultOutputFile, "vm factory is off")
|
||||||
} else {
|
} else {
|
||||||
f.CloseFactory(ctx)
|
|
||||||
fmt.Fprintln(defaultOutputFile, "vm factory is on")
|
fmt.Fprintln(defaultOutputFile, "vm factory is on")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user