mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
Merge pull request #15713 from swordqiu/automated-cherry-pick-of-#15710-upstream-release-3.8
Automated cherry pick of #15710: fix: init shceduler schedinfo project and domain
This commit is contained in:
@@ -95,6 +95,13 @@ func FetchSchedInfo(req *http.Request) (*SchedInfo, error) {
|
||||
data := NewSchedInfo(input)
|
||||
data.UserCred = userCred
|
||||
|
||||
if len(data.Domain) == 0 {
|
||||
data.Domain = userCred.GetProjectDomainId()
|
||||
}
|
||||
if len(data.Project) == 0 {
|
||||
data.Project = userCred.GetProjectId()
|
||||
}
|
||||
|
||||
domainId := data.Domain
|
||||
for _, net := range data.Networks {
|
||||
if net.Domain == "" {
|
||||
|
||||
Reference in New Issue
Block a user