Skip to content

Commit

Permalink
Generate google_vpn_gateway using Magic Module
Browse files Browse the repository at this point in the history
  • Loading branch information
rosbo authored and modular-magician committed May 1, 2018
1 parent 7fd468c commit 47ac832
Show file tree
Hide file tree
Showing 9 changed files with 248 additions and 81 deletions.
1 change: 1 addition & 0 deletions google/provider_compute_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ var GeneratedComputeResourcesMap = map[string]*schema.Resource{
"google_compute_https_health_check": resourceComputeHttpsHealthCheck(),
"google_compute_target_http_proxy": resourceComputeTargetHttpProxy(),
"google_compute_target_ssl_proxy": resourceComputeTargetSslProxy(),
"google_compute_vpn_gateway": resourceComputeVpnGateway(),
}
2 changes: 1 addition & 1 deletion google/resource_compute_backend_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func resourceComputeBackendBucketCreate(d *schema.ResourceData, meta interface{}
if waitErr != nil {
// The resource didn't actually create
d.SetId("")
return waitErr
return fmt.Errorf("Error waiting to create BackendBucket: %s", waitErr)
}

return resourceComputeBackendBucketRead(d, meta)
Expand Down
2 changes: 1 addition & 1 deletion google/resource_compute_global_address.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func resourceComputeGlobalAddressCreate(d *schema.ResourceData, meta interface{}
if waitErr != nil {
// The resource didn't actually create
d.SetId("")
return waitErr
return fmt.Errorf("Error waiting to create GlobalAddress: %s", waitErr)
}

return resourceComputeGlobalAddressRead(d, meta)
Expand Down
2 changes: 1 addition & 1 deletion google/resource_compute_http_health_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func resourceComputeHttpHealthCheckCreate(d *schema.ResourceData, meta interface
if waitErr != nil {
// The resource didn't actually create
d.SetId("")
return waitErr
return fmt.Errorf("Error waiting to create HttpHealthCheck: %s", waitErr)
}

return resourceComputeHttpHealthCheckRead(d, meta)
Expand Down
2 changes: 1 addition & 1 deletion google/resource_compute_https_health_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func resourceComputeHttpsHealthCheckCreate(d *schema.ResourceData, meta interfac
if waitErr != nil {
// The resource didn't actually create
d.SetId("")
return waitErr
return fmt.Errorf("Error waiting to create HttpsHealthCheck: %s", waitErr)
}

return resourceComputeHttpsHealthCheckRead(d, meta)
Expand Down
2 changes: 1 addition & 1 deletion google/resource_compute_target_http_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func resourceComputeTargetHttpProxyCreate(d *schema.ResourceData, meta interface
if waitErr != nil {
// The resource didn't actually create
d.SetId("")
return waitErr
return fmt.Errorf("Error waiting to create TargetHttpProxy: %s", waitErr)
}

return resourceComputeTargetHttpProxyRead(d, meta)
Expand Down
2 changes: 1 addition & 1 deletion google/resource_compute_target_ssl_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func resourceComputeTargetSslProxyCreate(d *schema.ResourceData, meta interface{
if waitErr != nil {
// The resource didn't actually create
d.SetId("")
return waitErr
return fmt.Errorf("Error waiting to create TargetSslProxy: %s", waitErr)
}

return resourceComputeTargetSslProxyRead(d, meta)
Expand Down
Loading

0 comments on commit 47ac832

Please sign in to comment.