Add tests for receiving allocation updates from Nomad
This commit is contained in:

committed by
Maximilian Pass

parent
3f572261c2
commit
d0a2a1d96c
2
main.go
2
main.go
@@ -41,7 +41,7 @@ func runServer(server *http.Server) {
|
||||
|
||||
func initServer() *http.Server {
|
||||
// API initialization
|
||||
nomadAPIClient, err := nomad.NewExecutorApi(config.Config.NomadAPIURL(), config.Config.Nomad.Namespace)
|
||||
nomadAPIClient, err := nomad.NewExecutorAPI(config.Config.NomadAPIURL(), config.Config.Nomad.Namespace)
|
||||
if err != nil {
|
||||
log.WithError(err).WithField("nomad url", config.Config.NomadAPIURL()).Fatal("Error parsing the nomad url")
|
||||
}
|
||||
|
Reference in New Issue
Block a user