From c0219ea545447d18fe4a0f2000eda86d63efef9c Mon Sep 17 00:00:00 2001 From: twobiers <22715034+twobiers@users.noreply.github.com> Date: Thu, 29 Aug 2024 21:25:03 +0200 Subject: [PATCH] use backtick string Signed-off-by: twobiers <22715034+twobiers@users.noreply.github.com> --- function_maps.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function_maps.go b/function_maps.go index ec82513..4f8dbf5 100644 --- a/function_maps.go +++ b/function_maps.go @@ -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 {