Skip to content

Commit

Permalink
fix var names
Browse files Browse the repository at this point in the history
  • Loading branch information
dvjn committed Aug 4, 2024
1 parent 380e9e5 commit 138e534
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pipeline/frontend/yaml/compiler/settings/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ func injectVariableOrSecretRecursive(v any, getVariableValue, getSecretValue fun
// gopkg.in/yaml.v3 only emits this map interface
case map[string]any:
// handle secrets
value, isSecret, err := injectVariableOrSecret(v, getVariableValue, getSecretValue)
value, isInjected, err := injectVariableOrSecret(v, getVariableValue, getSecretValue)
if err != nil {
return nil, err
} else if isSecret {
} else if isInjected {
return value, nil
}

Expand Down
2 changes: 1 addition & 1 deletion pipeline/frontend/yaml/compiler/settings/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ list.map:
return variable, nil
}

return "", fmt.Errorf("secret %q not found or not allowed to be used", name)
return "", fmt.Errorf("variable %q not found or not allowed to be used", name)
}
getSecretValue := func(name string) (string, error) {
name = strings.ToLower(name)
Expand Down

0 comments on commit 138e534

Please sign in to comment.