Skip to content

Commit

Permalink
remove need for provider-level project from service networking connec…
Browse files Browse the repository at this point in the history
…tion resource (#2311)

Merged PR #2311.
  • Loading branch information
danawillow authored and modular-magician committed Sep 13, 2019
1 parent 1e37810 commit 5bd5938
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,12 @@ func resourceServiceNetworkingConnectionDelete(d *schema.ResourceData, meta inte
obj["name"] = peering
url := fmt.Sprintf("%s%s/removePeering", config.ComputeBasePath, serviceNetworkingNetworkName)

project, err := getProject(d, config)
networkFieldValue, err := ParseNetworkFieldValue(network, d, config)
if err != nil {
return err
return errwrap.Wrapf("Failed to retrieve network field value, err: {{err}}", err)
}

project := networkFieldValue.Project
res, err := sendRequestWithTimeout(config, "POST", project, url, obj, d.Timeout(schema.TimeoutUpdate))
if err != nil {
return handleNotFoundError(err, d, fmt.Sprintf("ServiceNetworkingConnection %q", d.Id()))
Expand Down

0 comments on commit 5bd5938

Please sign in to comment.