Browse Source

Merge pull request 'update openI algorithmId error msg' (#445) from tzwang/pcm-coordinator:master into master

pull/456/head
tzwang 8 months ago
parent
commit
9c5613bda9
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      internal/storeLink/openi.go

+ 2
- 1
internal/storeLink/openi.go View File

@@ -5,6 +5,7 @@ import (
"context"
"encoding/json"
"errors"
"fmt"
openIcom "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/common"
"gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option"
"gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/collector"
@@ -186,7 +187,7 @@ func (o *OpenI) SubmitTask(ctx context.Context, imageId string, cmd string, envs
var bootFile string
codePaths := strings.Split(algorithmId, FORWARD_SLASH)
if len(codePaths) != 3 {
return nil, errors.New("algorithmId format is incorrect")
return nil, fmt.Errorf("algorithmId %s format is incorrect", algorithmId)
}

specs := strings.Split(resourceId, FORWARD_SLASH)


Loading…
Cancel
Save