Skip to content

Commit

Permalink
Update pkg/test/utils/translate.go
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Bandy <[email protected]>
Signed-off-by: Shawn O'Dell <[email protected]>
  • Loading branch information
so-jelly and cbandy committed Jan 22, 2023
1 parent d6edcc4 commit 5a4ea3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/test/utils/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func translateRecursive(copy, original reflect.Value) {
case reflect.String:
translatedString := original.Interface().(string)
if strings.HasPrefix(translatedString, "$") {
variable := TrimLeftChar(translatedString)
variable := translatedString[1:]
if val, ok := os.LookupEnv(variable); ok {
translatedString = val
}
Expand Down

0 comments on commit 5a4ea3e

Please sign in to comment.