Skip to content

Commit 1b7a3e2

Browse files
feat: use recordsets.DeleteWithOpts for cross-project delete
gophercloud v2 branch keeps Delete signature unchanged; DeleteWithOpts is the new function that accepts header opts including AllProjects.
1 parent 7770f0f commit 1b7a3e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/designate/client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ func (c designateClient) DeleteRecordSet(ctx context.Context, zoneID, recordSetI
260260

261261
log.Debugf("→ Deleting recordset: %s", recordSetID)
262262

263-
err := recordsets.Delete(ctx, c.serviceClient, zoneID, recordSetID, recordsets.DeleteOpts{AllProjects: c.allProjects}).ExtractErr()
263+
err := recordsets.DeleteWithOpts(ctx, c.serviceClient, zoneID, recordSetID, recordsets.DeleteOpts{AllProjects: c.allProjects}).ExtractErr()
264264

265265
duration := time.Since(startTime)
266266
metrics.ApiCallLatency.WithLabelValues("DeleteRecordSet").Observe(duration.Seconds())

0 commit comments

Comments
 (0)