Skip to content

Commit 55f1530

Browse files
authored
catch exception when eip nil (#1276)
1 parent 25bf02d commit 55f1530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tencentcloud/resource_tc_eip.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func resourceTencentCloudEipCreate(d *schema.ResourceData, meta interface{}) err
185185
if errRet != nil {
186186
return retryError(errRet)
187187
}
188-
if *eip.AddressStatus == EIP_STATUS_CREATING {
188+
if eip != nil && *eip.AddressStatus == EIP_STATUS_CREATING {
189189
return resource.RetryableError(fmt.Errorf("eip is still creating"))
190190
}
191191
return nil

0 commit comments

Comments
 (0)