Skip to content

Commit

Permalink
use backtick string
Browse files Browse the repository at this point in the history
Signed-off-by: twobiers <[email protected]>
  • Loading branch information
twobiers committed Aug 29, 2024
1 parent d304e83 commit c0219ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion function_maps.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func getCompositeResource(req map[string]any) map[string]any {
}

func getCompositionEnvVar(req map[string]any, name string) (string, error) {
path := fmt.Sprintf("context[\"apiextensions.crossplane.io/environment\"][\"%s\"]", name)
path := fmt.Sprintf(`context["apiextensions.crossplane.io/environment"]["%s"]`, name)

env, err := fieldpath.Pave(req).GetString(path);
if err != nil {
Expand Down

0 comments on commit c0219ea

Please sign in to comment.