use patch instead of put to update router. Fixes #1778. (#1780)

<!-- This change is generated by MagicModules. -->
/cc @danawillow
This commit is contained in:
The Magician 2018-07-16 14:56:03 -07:00 committed by Dana Hoffman
parent b00b1d7c76
commit 1f9de6ad13

View File

@ -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)