change to fit update to oclib
This commit is contained in:
parent
a69ecc4ab5
commit
2bc6e4327e
13
main.go
13
main.go
@ -3,16 +3,21 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
conf "oc-schedulerd/conf"
|
||||
"oc-schedulerd/conf"
|
||||
"oc-schedulerd/daemons"
|
||||
|
||||
oclib "cloud.o-forge.io/core/oc-lib"
|
||||
"cloud.o-forge.io/core/oc-lib/tools"
|
||||
)
|
||||
|
||||
func main() {
|
||||
tools.SetConfig(conf.GetConfig().MongoUrl, "DC_myDC", "")
|
||||
oclib.Init("oc-schedulerd","","")
|
||||
oclib.SetConfig(
|
||||
conf.GetConfig().MongoUrl,
|
||||
conf.GetConfig().MongoUrl,
|
||||
conf.GetConfig().NatsUrl,
|
||||
conf.GetConfig().LokiUrl,
|
||||
conf.GetConfig().Logs,
|
||||
)
|
||||
oclib.Init("oc-schedulerd")
|
||||
|
||||
sch_mngr := daemons.ScheduleManager{Logger: oclib.GetLogger()}
|
||||
exe_mngr := daemons.ExecutionManager{}
|
||||
|
Loading…
Reference in New Issue
Block a user