From 91ed6e2197247b34fac2682626d1c7fdd14d2233 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Thu, 24 Nov 2022 16:35:30 +0100 Subject: [PATCH] Allow WithEnv to be passed multiple times Signed-off-by: Kristoffer Dalby --- integration/hsic/hsic.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/integration/hsic/hsic.go b/integration/hsic/hsic.go index 5945c913..9766c882 100644 --- a/integration/hsic/hsic.go +++ b/integration/hsic/hsic.go @@ -79,13 +79,9 @@ func WithTLS() Option { func WithConfigEnv(configEnv map[string]string) Option { return func(hsic *HeadscaleInContainer) { - env := []string{} - for key, value := range configEnv { - env = append(env, fmt.Sprintf("%s=%s", key, value)) + hsic.env = append(hsic.env, fmt.Sprintf("%s=%s", key, value)) } - - hsic.env = env } }