fixing scheduling process
This commit is contained in:
@@ -3,6 +3,8 @@ package services
|
||||
import (
|
||||
"os"
|
||||
|
||||
conf "cloud.o-forge.io/core/oc-catalog/conf"
|
||||
|
||||
SelfAPI "cloud.o-forge.io/core/oc-catalog/selfapi"
|
||||
"github.com/beego/beego/v2/core/logs"
|
||||
beego "github.com/beego/beego/v2/server/web"
|
||||
@@ -14,6 +16,7 @@ func GetSelfAPI(host string) *SelfAPI.APIClient {
|
||||
return SelfAPI.NewAPIClient(&SelfAPI.Configuration{BasePath: "http://" + host + "/v1"})
|
||||
}
|
||||
|
||||
// Need to understand why there are so many different DC name
|
||||
func Discoveryinit() {
|
||||
|
||||
dcNameOS := os.Getenv("DOCKER_DCNAME")
|
||||
@@ -32,4 +35,7 @@ func Discoveryinit() {
|
||||
DC_NAME = "DC_DEFAULT"
|
||||
logs.Warning("Default DC name is used")
|
||||
|
||||
// Quickfix for scheduling
|
||||
DC_NAME = conf.GetConfig().DCNAME
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user