diff --git a/provisioner/hcp-sbom/release_download.go b/provisioner/hcp-sbom/release_download.go index 84c181047..8a113a068 100644 --- a/provisioner/hcp-sbom/release_download.go +++ b/provisioner/hcp-sbom/release_download.go @@ -243,9 +243,9 @@ func downloadPackerRelease(ctx context.Context, goos, goarch string) (string, er // Download the release zip. var zipPath string err = retry.Config{ - Tries: 3, - RetryDelay: func() time.Duration {return 5 * time.Second}, - }.Run(ctx , func(ctx context.Context) error { + Tries: 3, + RetryDelay: func() time.Duration { return 5 * time.Second }, + }.Run(ctx, func(ctx context.Context) error { var e error zipPath, e = downloadURLToTempFile(ctx, client, zipURL, ".zip") return e