Skip to content

Commit

Permalink
rename to mostDisruptiveAllowedAction (#6841) (#13067)
Browse files Browse the repository at this point in the history
Co-authored-by: Edward Sun <sunedward@google.com>
Fixes #13062

Signed-off-by: Modular Magician <magic-modules@google.com>

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician committed Nov 17, 2022
1 parent e61e869 commit 1afe086
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/6841.txt
@@ -0,0 +1,3 @@
```release-note:bug
compute: fixed a failure in updating `most_disruptive_allowed_action` on `google_compute_per_instance_config` and `google_compute_region_per_instance_config`
```
2 changes: 1 addition & 1 deletion google/resource_compute_per_instance_config.go
Expand Up @@ -400,7 +400,7 @@ func resourceComputePerInstanceConfigUpdate(d *schema.ResourceData, meta interfa
if isEmptyValue(reflect.ValueOf(mostDisruptiveAction)) {
mostDisruptiveAction = "REPLACE"
}
obj["mostDisruptiveActionAllowed"] = mostDisruptiveAction
obj["mostDisruptiveAllowedAction"] = mostDisruptiveAction

url, err = replaceVars(d, config, "{{ComputeBasePath}}projects/{{project}}/zones/{{zone}}/instanceGroupManagers/{{instance_group_manager}}/applyUpdatesToInstances")
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion google/resource_compute_region_per_instance_config.go
Expand Up @@ -409,7 +409,7 @@ func resourceComputeRegionPerInstanceConfigUpdate(d *schema.ResourceData, meta i
if isEmptyValue(reflect.ValueOf(mostDisruptiveAction)) {
mostDisruptiveAction = "REPLACE"
}
obj["mostDisruptiveActionAllowed"] = mostDisruptiveAction
obj["mostDisruptiveAllowedAction"] = mostDisruptiveAction

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

0 comments on commit 1afe086

Please sign in to comment.