Skip to content

Commit 66a2ac0

Browse files
author
Dimitar Proynov
committed
Address Fanny's review comments.
Testing done: golangci-lint run - passes with no warn output make build - passes with no warn output make testacc TESTARGS="-run=TestAccResourceVmcSddc_Zerocloud" - passes successfully Signed-off-by: Dimitar Proynov <[email protected]>
1 parent 30d3832 commit 66a2ac0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vmc/resource_vmc_sddc.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,10 @@ func resourceSddcCreate(d *schema.ResourceData, m interface{}) error {
404404
serviceUnavailableRetries++
405405
if serviceUnavailableRetries <= maxServiceUnavailableRetries {
406406
return resource.RetryableError(fmt.Errorf(
407-
"VMC backend is experiencing difficulties, retry to polling the SDDC Create Task"))
407+
"VMC backend is experiencing difficulties, retry %d from %d to polling the SDDC Create Task",
408+
serviceUnavailableRetries, maxServiceUnavailableRetries))
408409
} else {
409-
return resource.NonRetryableError(fmt.Errorf("VMC service is down"))
410+
return resource.NonRetryableError(fmt.Errorf("max ServiceUnavailable retries (20) reached to create SDDC"))
410411
}
411412
}
412413
return resource.NonRetryableError(fmt.Errorf("error creating SDDC : %v", err))

0 commit comments

Comments
 (0)