Skip to content

Commit

Permalink
wait for virtual endpoint gateway to be available after creation
Browse files Browse the repository at this point in the history
  • Loading branch information
deepaksibm committed Nov 30, 2022
1 parent 2b0203b commit 86d61df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ibm/service/vpc/resource_ibm_is_virtual_endpoint_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ func resourceIBMisVirtualEndpointGatewayCreate(d *schema.ResourceData, meta inte
}

d.SetId(*result.ID)
_, err = isWaitForVirtualEndpointGatewayAvailable(sess, d.Id(), d.Timeout(schema.TimeoutUpdate))
if err != nil {
return err
}
v := os.Getenv("IC_ENV_TAGS")
if _, ok := d.GetOk(isVirtualEndpointGatewayTags); ok || v != "" {
oldList, newList := d.GetChange(isVirtualEndpointGatewayTags)
Expand Down

0 comments on commit 86d61df

Please sign in to comment.