[ci-base] fix last
This commit is contained in:
parent
215a239133
commit
5730e4054e
1 changed files with 13 additions and 0 deletions
|
|
@ -84,6 +84,19 @@ func (p *execPlugin) HydrateOpts(opts []byte) error {
|
|||
allString[k] = vt
|
||||
case int64:
|
||||
allString[k] = strconv.Itoa(int(vt))
|
||||
case []interface{}:
|
||||
str := make([]string, len(vt))
|
||||
for i, v := range vt {
|
||||
switch vt := v.(type) {
|
||||
case string:
|
||||
str[i] = vt
|
||||
case int64:
|
||||
str[i] = strconv.Itoa(int(vt))
|
||||
case float64:
|
||||
str[i] = strconv.Itoa(int(vt))
|
||||
}
|
||||
}
|
||||
allString[k] = strings.Join(str, ",")
|
||||
case []int64:
|
||||
str := make([]string, len(vt))
|
||||
for i, v := range vt {
|
||||
|
|
|
|||
Loading…
Reference in a new issue