Browse Source

update

tags/v1.22.1.1^2
liuzx 3 years ago
parent
commit
46c6fca60e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/repo/modelarts.go

+ 2
- 2
routers/repo/modelarts.go View File

@@ -1251,8 +1251,8 @@ func paramCheckCreateTrainJob(form auth.CreateModelArtsTrainJobForm) error {
log.Error("the WorkServerNumber(%d) must be in (1,25)", form.WorkServerNumber) log.Error("the WorkServerNumber(%d) must be in (1,25)", form.WorkServerNumber)
return errors.New("计算节点数必须在1-25之间") return errors.New("计算节点数必须在1-25之间")
} }
if form.BranchName == nil || form.BranchName == "" {
log.Error("the branch must not be nil!", form.BranchName)
if form.BranchName == "" {
log.Error("the branch must not be null!", form.BranchName)
return errors.New("代码分支不能为空!") return errors.New("代码分支不能为空!")
} }




Loading…
Cancel
Save