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

Commit

Permalink
Merge pull request #1164 from liwei/fix-factory-status
Browse files Browse the repository at this point in the history
factory: do not destroy vm factory when checking status
  • Loading branch information
jodh-intel authored Jan 23, 2019
2 parents 1353499 + d78a62d commit 6f2c036
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 6f2c036

Please sign in to comment.