Skip to content

Commit 1afe086

Browse files
rename to mostDisruptiveAllowedAction (#6841) (#13067)
Co-authored-by: Edward Sun <[email protected]> Fixes #13062 Signed-off-by: Modular Magician <[email protected]> Signed-off-by: Modular Magician <[email protected]>
1 parent e61e869 commit 1afe086

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.changelog/6841.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
compute: fixed a failure in updating `most_disruptive_allowed_action` on `google_compute_per_instance_config` and `google_compute_region_per_instance_config`
3+
```

google/resource_compute_per_instance_config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ func resourceComputePerInstanceConfigUpdate(d *schema.ResourceData, meta interfa
400400
if isEmptyValue(reflect.ValueOf(mostDisruptiveAction)) {
401401
mostDisruptiveAction = "REPLACE"
402402
}
403-
obj["mostDisruptiveActionAllowed"] = mostDisruptiveAction
403+
obj["mostDisruptiveAllowedAction"] = mostDisruptiveAction
404404

405405
url, err = replaceVars(d, config, "{{ComputeBasePath}}projects/{{project}}/zones/{{zone}}/instanceGroupManagers/{{instance_group_manager}}/applyUpdatesToInstances")
406406
if err != nil {

google/resource_compute_region_per_instance_config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ func resourceComputeRegionPerInstanceConfigUpdate(d *schema.ResourceData, meta i
409409
if isEmptyValue(reflect.ValueOf(mostDisruptiveAction)) {
410410
mostDisruptiveAction = "REPLACE"
411411
}
412-
obj["mostDisruptiveActionAllowed"] = mostDisruptiveAction
412+
obj["mostDisruptiveAllowedAction"] = mostDisruptiveAction
413413

414414
url, err = replaceVars(d, config, "{{ComputeBasePath}}projects/{{project}}/regions/{{region}}/instanceGroupManagers/{{region_instance_group_manager}}/applyUpdatesToInstances")
415415
if err != nil {

0 commit comments

Comments
 (0)