mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-03 08:42:39 +00:00
Magic Modules changes. (#1392)
This commit is contained in:
parent
b3a722ee39
commit
949b33ab20
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user