bug(server): Start ops listener even if controller is nil (#2314)

pull/2315/head
Louis Ruch 4 years ago committed by GitHub
parent 0a865e0b89
commit fc25178827
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -527,15 +527,13 @@ func (c *Command) Run(args []string) int {
return base.CommandCliError
}
if c.controller != nil {
opsServer, err := ops.NewServer(c.Logger, c.controller, c.Listeners...)
if err != nil {
c.UI.Error(err.Error())
return base.CommandCliError
}
c.opsServer = opsServer
c.opsServer.Start()
opsServer, err := ops.NewServer(c.Logger, c.controller, c.Listeners...)
if err != nil {
c.UI.Error(err.Error())
return base.CommandCliError
}
c.opsServer = opsServer
c.opsServer.Start()
// Inform any tests that the server is ready
if c.startedCh != nil {

Loading…
Cancel
Save