[ci-base] fix last

This commit is contained in:
Alexander Wang 2023-03-17 18:09:50 -07:00
parent 215a239133
commit 5730e4054e
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -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 {