Skip to content

Commit 4e1c64e

Browse files
committed
add
1 parent a83c03f commit 4e1c64e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tencentcloud/services/tmp/resource_tc_monitor_tmp_exporter_integration.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@ func resourceTencentCloudMonitorTmpExporterIntegrationCreate(d *schema.ResourceD
174174
return tccommon.RetryError(errRet, tccommon.InternalError)
175175
}
176176

177-
status := results.Response.Status
178-
if status == nil {
177+
if results == nil || results.Response == nil || results.Response.Status == nil {
179178
return resource.NonRetryableError(fmt.Errorf("prometheusInstanceInit status is nil, operate failed"))
180179
}
181180

181+
status := results.Response.Status
182182
if *status == "running" {
183183
return nil
184184
}

0 commit comments

Comments
 (0)