Magic Modules changes. (#1392)

This commit is contained in:
The Magician 2018-04-27 10:20:39 -07:00 committed by Vincent Roseberry
parent b3a722ee39
commit 949b33ab20
2 changed files with 16 additions and 0 deletions

View File

@ -184,6 +184,8 @@ func resourceComputeTargetHttpProxyUpdate(d *schema.ResourceData, meta interface
var res map[string]interface{}
op := &compute.Operation{}
d.Partial(true)
if d.HasChange("url_map") {
descriptionProp, err := expandComputeTargetHttpProxyDescription(d.Get("description"), d, config)
if err != nil {
@ -224,8 +226,12 @@ func resourceComputeTargetHttpProxyUpdate(d *schema.ResourceData, meta interface
if err != nil {
return err
}
d.SetPartial("url_map")
}
d.Partial(false)
return resourceComputeTargetHttpProxyRead(d, meta)
}

View File

@ -210,6 +210,8 @@ func resourceComputeTargetSslProxyUpdate(d *schema.ResourceData, meta interface{
var res map[string]interface{}
op := &compute.Operation{}
d.Partial(true)
if d.HasChange("proxy_header") {
descriptionProp, err := expandComputeTargetSslProxyDescription(d.Get("description"), d, config)
if err != nil {
@ -260,6 +262,8 @@ func resourceComputeTargetSslProxyUpdate(d *schema.ResourceData, meta interface{
if err != nil {
return err
}
d.SetPartial("proxy_header")
}
if d.HasChange("backend_service") {
descriptionProp, err := expandComputeTargetSslProxyDescription(d.Get("description"), d, config)
@ -311,6 +315,8 @@ func resourceComputeTargetSslProxyUpdate(d *schema.ResourceData, meta interface{
if err != nil {
return err
}
d.SetPartial("backend_service")
}
if d.HasChange("ssl_certificates") {
descriptionProp, err := expandComputeTargetSslProxyDescription(d.Get("description"), d, config)
@ -362,8 +368,12 @@ func resourceComputeTargetSslProxyUpdate(d *schema.ResourceData, meta interface{
if err != nil {
return err
}
d.SetPartial("ssl_certificates")
}
d.Partial(false)
return resourceComputeTargetSslProxyRead(d, meta)
}