Skip to content

Commit 4d3052b

Browse files
authored
Merge pull request #2224 from sunnylovestiramisu/timeout
Wrap CreateSnapshot Timeout in DeadlineExceeded Error Code
2 parents decab03 + e1df1d5 commit 4d3052b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gce-cloud-provider/compute/gce-compute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ func (cloud *CloudProvider) waitForSnapshotCreation(ctx context.Context, project
15791579
}
15801580
}
15811581
case <-timer.C:
1582-
return nil, fmt.Errorf("Timeout waiting for snapshot %s to be created.", snapshotName)
1582+
return nil, status.Errorf(codes.DeadlineExceeded, "Timeout waiting for snapshot %s to be created.", snapshotName)
15831583
}
15841584
}
15851585
}

0 commit comments

Comments
 (0)