Skip to content

Commit 0d4a956

Browse files
tongyimingmikatong
andauthored
fix lighthouse disk ready status (#1858)
* fix lighthouse disk ready status * add ready status --------- Co-authored-by: mikatong <mikatong@tencent.com>
1 parent 00de37e commit 0d4a956

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.changelog/1858.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
resource/tencentcloud_lighthouse_disk: add create ready status
3+
```

tencentcloud/resource_tc_lighthouse_disk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ func resourceTencentCloudLighthouseDiskCreate(d *schema.ResourceData, meta inter
233233

234234
service := LightHouseService{client: meta.(*TencentCloudClient).apiV3Conn}
235235

236-
conf := BuildStateChangeConf([]string{}, []string{"UNATTACHED"}, 20*readRetryTimeout, time.Second, service.LighthouseDiskStateRefreshFunc(d.Id(), []string{}))
236+
conf := BuildStateChangeConf([]string{}, []string{"UNATTACHED", "ATTACHED"}, 20*readRetryTimeout, time.Second, service.LighthouseDiskStateRefreshFunc(d.Id(), []string{}))
237237

238238
if _, e := conf.WaitForState(); e != nil {
239239
return e

0 commit comments

Comments
 (0)