Skip to content

Commit 949b33a

Browse files
modular-magicianrosbo
authored andcommitted
Magic Modules changes. (#1392)
1 parent b3a722e commit 949b33a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

google/resource_compute_target_http_proxy.go

+6
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ func resourceComputeTargetHttpProxyUpdate(d *schema.ResourceData, meta interface
184184
var res map[string]interface{}
185185
op := &compute.Operation{}
186186

187+
d.Partial(true)
188+
187189
if d.HasChange("url_map") {
188190
descriptionProp, err := expandComputeTargetHttpProxyDescription(d.Get("description"), d, config)
189191
if err != nil {
@@ -224,8 +226,12 @@ func resourceComputeTargetHttpProxyUpdate(d *schema.ResourceData, meta interface
224226
if err != nil {
225227
return err
226228
}
229+
230+
d.SetPartial("url_map")
227231
}
228232

233+
d.Partial(false)
234+
229235
return resourceComputeTargetHttpProxyRead(d, meta)
230236
}
231237

google/resource_compute_target_ssl_proxy.go

+10
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ func resourceComputeTargetSslProxyUpdate(d *schema.ResourceData, meta interface{
210210
var res map[string]interface{}
211211
op := &compute.Operation{}
212212

213+
d.Partial(true)
214+
213215
if d.HasChange("proxy_header") {
214216
descriptionProp, err := expandComputeTargetSslProxyDescription(d.Get("description"), d, config)
215217
if err != nil {
@@ -260,6 +262,8 @@ func resourceComputeTargetSslProxyUpdate(d *schema.ResourceData, meta interface{
260262
if err != nil {
261263
return err
262264
}
265+
266+
d.SetPartial("proxy_header")
263267
}
264268
if d.HasChange("backend_service") {
265269
descriptionProp, err := expandComputeTargetSslProxyDescription(d.Get("description"), d, config)
@@ -311,6 +315,8 @@ func resourceComputeTargetSslProxyUpdate(d *schema.ResourceData, meta interface{
311315
if err != nil {
312316
return err
313317
}
318+
319+
d.SetPartial("backend_service")
314320
}
315321
if d.HasChange("ssl_certificates") {
316322
descriptionProp, err := expandComputeTargetSslProxyDescription(d.Get("description"), d, config)
@@ -362,8 +368,12 @@ func resourceComputeTargetSslProxyUpdate(d *schema.ResourceData, meta interface{
362368
if err != nil {
363369
return err
364370
}
371+
372+
d.SetPartial("ssl_certificates")
365373
}
366374

375+
d.Partial(false)
376+
367377
return resourceComputeTargetSslProxyRead(d, meta)
368378
}
369379

0 commit comments

Comments
 (0)