From 155803de7d5c1df5edd456a45a19008c9ae5ea7b Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sun, 9 Jan 2022 17:12:13 -0500 Subject: Propagate context into datasource read functions (#1282) Signed-off-by: Dave Henderson --- data/datasource_env.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'data/datasource_env.go') diff --git a/data/datasource_env.go b/data/datasource_env.go index 15d56a1d..f1e2e5aa 100644 --- a/data/datasource_env.go +++ b/data/datasource_env.go @@ -1,12 +1,13 @@ package data import ( + "context" "strings" "github.com/hairyhenderson/gomplate/v3/env" ) -func readEnv(source *Source, args ...string) (b []byte, err error) { +func readEnv(ctx context.Context, source *Source, args ...string) (b []byte, err error) { n := source.URL.Path n = strings.TrimPrefix(n, "/") if n == "" { -- cgit v1.2.3