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 Dec 12, 2022
1 parent 67ad78a commit d877bb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 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 @@ -332,6 +332,11 @@ func resourceIBMisVirtualEndpointGatewayCreate(d *schema.ResourceData, meta inte
}

d.SetId(*endpointGateway.ID)

_, err = isWaitForVirtualEndpointGatewayAvailable(sess, d.Id(), d.Timeout(schema.TimeoutCreate))
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 d877bb6

Please sign in to comment.