Skip to content

Commit 18da9ae

Browse files
authored
fix(dts): [122437920] tencentcloud_dts_migrate_service fix cannot be deleted (#3252)
* add * add
1 parent 7cb1ad5 commit 18da9ae

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.changelog/3252.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_dts_migrate_service: fix cannot be delete
3+
```

tencentcloud/services/dts/service_tencentcloud_dts.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ func (me *DtsService) DeleteDtsMigrateServiceById(ctx context.Context, jobId str
612612
return
613613
}
614614

615-
stop, err := me.PollingMigrateJobStatusUntil(ctx, jobId, DTSTradeStatus, []string{"isolated", "noBilled"})
615+
stop, err := me.PollingMigrateJobStatusUntil(ctx, jobId, DTSTradeStatus, []string{"isolated", "notBilled"})
616616
if err != nil {
617617
return err
618618
}
@@ -660,7 +660,7 @@ func (me *DtsService) PollingMigrateJobStatusUntil(ctx context.Context, jobId, s
660660
status := *ret.Status
661661
for _, target := range targetStatus {
662662
if strings.Contains(target, status) {
663-
if status == "noBilled" {
663+
if status == "notBilled" {
664664
stop = true
665665
return nil
666666
}
@@ -676,7 +676,7 @@ func (me *DtsService) PollingMigrateJobStatusUntil(ctx context.Context, jobId, s
676676
status := *ret.TradeInfo.TradeStatus
677677
for _, target := range targetStatus {
678678
if strings.Contains(target, status) {
679-
if status == "noBilled" {
679+
if status == "notBilled" {
680680
stop = true
681681
return nil
682682
}

0 commit comments

Comments
 (0)