Skip to content

Commit 38d2347

Browse files
committed
Make secret actually return a SecretValue object for consistency
It used to return just a plain string due to the potential prefix, but thats misleaing
1 parent 775a557 commit 38d2347

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

nodes/secret-get@v1.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ func (n *SecretNode) OutputValueById(c *core.ExecutionState, outputId core.Outpu
3737
return "", nil
3838
}
3939

40-
return fmt.Sprintf("%s%s", prefix, secretValue), nil
40+
return core.SecretValue{
41+
Secret: fmt.Sprintf("%s%s", prefix, secretValue),
42+
}, nil
4143
}
4244

4345
func init() {

0 commit comments

Comments
 (0)