Skip to content

Commit 4240890

Browse files
authored
fix(backend): fix cache server output (kubeflow#1018)
1 parent ea126bf commit 4240890

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

backend/src/cache/server/mutation.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ func mutateContainer(results map[string][]*tektonv1beta1.TaskRunResult, original
297297
args := []string{}
298298
args = append(args, "printf 'This step output is taken from cache.\n\n'")
299299
for _, result := range outputs {
300-
arg := fmt.Sprintf("printf '%s: %s\n'; printf '%s' > /tekton/results/%s", result.Name, result.Value, result.Value, result.Name)
300+
arg := fmt.Sprintf("printf '%s: %s\n'; printf '%s' > /tekton/results/%s", result.Name, result.Value.StringVal, result.Value.StringVal, result.Name)
301301
args = append(args, arg)
302302
}
303303

@@ -335,7 +335,6 @@ func unmarshalResult(taskResult string) (map[string][]*tektonv1beta1.TaskRunResu
335335
if err != nil {
336336
return nil, err
337337
}
338-
339338
return results, nil
340339
}
341340

0 commit comments

Comments
 (0)