Skip to content

Commit

Permalink
missing error check while waiting operation (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
kon-angelo authored Oct 10, 2024
1 parent d0639b9 commit e6a9d7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/gcp/client/compute.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@ func (c *computeClient) PatchNetwork(ctx context.Context, id string, n *compute.
op, err := c.service.Networks.Patch(c.projectID, id, n).Context(ctx).Do()
if IsErrorCode(err, http.StatusNotModified) {
return n, nil
} else if err != nil {
return nil, err
}

err = c.wait(ctx, op)
if err != nil {
return nil, err
Expand Down

0 comments on commit e6a9d7a

Please sign in to comment.