Skip to content

Commit

Permalink
https://github.com/udmire/observability-operator/issues/2
Browse files Browse the repository at this point in the history
  • Loading branch information
masonmei committed Sep 11, 2023
1 parent ed979b5 commit ef46ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/templates/store/sync/http_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef46ae5

Please sign in to comment.