diff --git a/internal/api/attestationconfigapi/cli/azure.go b/internal/api/attestationconfigapi/cli/azure.go index 5b1a86de0c..a10fb4e131 100644 --- a/internal/api/attestationconfigapi/cli/azure.go +++ b/internal/api/attestationconfigapi/cli/azure.go @@ -27,8 +27,6 @@ func deleteAzure(ctx context.Context, client *attestationconfigapi.Client, cfg d return client.DeleteSEVSNPVersion(ctx, variant.AzureSEVSNP{}, cfg.version) } -func ptr[A any](a A) *A { return &a } - func deleteRecursive(ctx context.Context, path string, client *staticupload.Client, cfg deleteConfig) error { resp, err := client.ListObjectsV2(ctx, &s3.ListObjectsV2Input{ Bucket: aws.String(cfg.bucket), @@ -48,7 +46,7 @@ func deleteRecursive(ctx context.Context, path string, client *staticupload.Clie Bucket: aws.String(cfg.bucket), Delete: &s3types.Delete{ Objects: objIDs, - Quiet: ptr(true), + Quiet: toPtr(true), }, }) if err != nil { @@ -57,3 +55,7 @@ func deleteRecursive(ctx context.Context, path string, client *staticupload.Clie } return nil } + +func toPtr[T any](v T) *T { + return &v +}