Skip to content

fix(dts): [122437920] tencentcloud_dts_migrate_service fix cannot be deleted #3252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/3252.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/tencentcloud_dts_migrate_service: fix cannot be delete
```
6 changes: 3 additions & 3 deletions tencentcloud/services/dts/service_tencentcloud_dts.go
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ func (me *DtsService) DeleteDtsMigrateServiceById(ctx context.Context, jobId str
return
}

stop, err := me.PollingMigrateJobStatusUntil(ctx, jobId, DTSTradeStatus, []string{"isolated", "noBilled"})
stop, err := me.PollingMigrateJobStatusUntil(ctx, jobId, DTSTradeStatus, []string{"isolated", "notBilled"})
if err != nil {
return err
}
Expand Down Expand Up @@ -660,7 +660,7 @@ func (me *DtsService) PollingMigrateJobStatusUntil(ctx context.Context, jobId, s
status := *ret.Status
for _, target := range targetStatus {
if strings.Contains(target, status) {
if status == "noBilled" {
if status == "notBilled" {
stop = true
return nil
}
Expand All @@ -676,7 +676,7 @@ func (me *DtsService) PollingMigrateJobStatusUntil(ctx context.Context, jobId, s
status := *ret.TradeInfo.TradeStatus
for _, target := range targetStatus {
if strings.Contains(target, status) {
if status == "noBilled" {
if status == "notBilled" {
stop = true
return nil
}
Expand Down
Loading