Skip to content

Commit c7c2606

Browse files
Async PD: change no disk status to a retryable error (#14361) (#23492)
[upstream:968d5fe002b51f6e5c3dd4aff712a7018a3f194d] Signed-off-by: Modular Magician <[email protected]>
1 parent 87efeb0 commit c7c2606

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.changelog/14361.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
compute: make no replication status in `google_compute_disk_async_replication` a retryable error
3+
```

google/services/compute/resource_compute_disk_async_replication.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func resourceDiskAsyncReplicationCreate(d *schema.ResourceData, meta interface{}
167167
return retry.NonRetryableError(err)
168168
}
169169
if diskStatus.ResourceStatus == nil {
170-
return retry.NonRetryableError(fmt.Errorf("no resource status for disk: %s", resourceId))
170+
return retry.RetryableError(fmt.Errorf("no resource status for disk: %s", resourceId))
171171
}
172172
if secondaryState, ok := diskStatus.ResourceStatus.AsyncSecondaryDisks[secondaryDisk]; ok {
173173
if secondaryState.State != "ACTIVE" {

0 commit comments

Comments
 (0)