From ef46ae5c87709fe416b608feab29110501938084 Mon Sep 17 00:00:00 2001 From: mason Date: Mon, 11 Sep 2023 10:32:44 +0000 Subject: [PATCH] https://github.com/udmire/observability-operator/issues/2 --- pkg/templates/store/sync/http_sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/templates/store/sync/http_sync.go b/pkg/templates/store/sync/http_sync.go index c6aa58d..e0b7ee7 100644 --- a/pkg/templates/store/sync/http_sync.go +++ b/pkg/templates/store/sync/http_sync.go @@ -81,7 +81,7 @@ func (s *httpSync) DownloadTemplate(name, url string) error { } defer resp.Body.Close() - tempFile, err := os.CreateTemp(os.TempDir(), fmt.Sprintf("%s.temp", splits[1])) + tempFile, err := os.CreateTemp(s.storePath, fmt.Sprintf("%s.temp", splits[1])) if err != nil { level.Warn(s.logger).Log("msg", "cannot create temp file for downloading template.", "url", url, "err", err) return err