From adeda399c39d7ed004fbf2a61a0c2cd0cc3f3278 Mon Sep 17 00:00:00 2001 From: Edward Sun <42220489+edwardmedia@users.noreply.github.com> Date: Thu, 17 Nov 2022 13:09:14 -0800 Subject: [PATCH] rename to mostDisruptiveAllowedAction (#6841) Co-authored-by: Edward Sun Fixes https://github.com/hashicorp/terraform-provider-google/issues/13062 --- .../terraform/post_update/compute_per_instance_config.go.erb | 2 +- .../post_update/compute_region_per_instance_config.go.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mmv1/templates/terraform/post_update/compute_per_instance_config.go.erb b/mmv1/templates/terraform/post_update/compute_per_instance_config.go.erb index c8cb4fa63445..428da0d7847d 100644 --- a/mmv1/templates/terraform/post_update/compute_per_instance_config.go.erb +++ b/mmv1/templates/terraform/post_update/compute_per_instance_config.go.erb @@ -17,7 +17,7 @@ mostDisruptiveAction := d.Get("most_disruptive_allowed_action") 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 { diff --git a/mmv1/templates/terraform/post_update/compute_region_per_instance_config.go.erb b/mmv1/templates/terraform/post_update/compute_region_per_instance_config.go.erb index ca477bada808..a203b19a3d52 100644 --- a/mmv1/templates/terraform/post_update/compute_region_per_instance_config.go.erb +++ b/mmv1/templates/terraform/post_update/compute_region_per_instance_config.go.erb @@ -17,7 +17,7 @@ mostDisruptiveAction := d.Get("most_disruptive_allowed_action") 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 {