Skip to content

Commit

Permalink
use patch instead of put to update router. Fixes #1778. (#1780)
Browse files Browse the repository at this point in the history
<!-- This change is generated by MagicModules. -->
/cc @danawillow
  • Loading branch information
modular-magician authored and danawillow committed Jul 16, 2018
1 parent b00b1d7 commit 1f9de6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/resource_compute_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func resourceComputeRouterUpdate(d *schema.ResourceData, meta interface{}) error
}

log.Printf("[DEBUG] Updating Router %q: %#v", d.Id(), obj)
res, err := sendRequest(config, "PUT", url, obj)
res, err := sendRequest(config, "PATCH", url, obj)

if err != nil {
return fmt.Errorf("Error updating Router %q: %s", d.Id(), err)
Expand Down

0 comments on commit 1f9de6a

Please sign in to comment.