From d53afea667c53f3f852b13143d5be56aada32c0f Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Mon, 17 Oct 2022 16:36:15 +0000 Subject: [PATCH] make vm_count in google_compute_resource_policy as optional (#6694) Co-authored-by: Timofey Yushchenko Signed-off-by: Modular Magician --- .changelog/6694.txt | 3 +++ google/resource_compute_resource_policy.go | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .changelog/6694.txt diff --git a/.changelog/6694.txt b/.changelog/6694.txt new file mode 100644 index 00000000000..27c589c5107 --- /dev/null +++ b/.changelog/6694.txt @@ -0,0 +1,3 @@ +```release-note:bug +compute: Made `vm_count` in `google_compute_resource_policy` optional +``` diff --git a/google/resource_compute_resource_policy.go b/google/resource_compute_resource_policy.go index 72f7f874a0e..8fe5f926600 100644 --- a/google/resource_compute_resource_policy.go +++ b/google/resource_compute_resource_policy.go @@ -71,7 +71,6 @@ which cannot be a dash.`, ForceNew: true, Description: `The number of availability domains instances will be spread across. If two instances are in different availability domain, they will not be put in the same low latency network`, - AtLeastOneOf: []string{"group_placement_policy.0.vm_count", "group_placement_policy.0.availability_domain_count"}, }, "collocation": { Type: schema.TypeString, @@ -90,7 +89,6 @@ attached. Possible values: ["COLLOCATED"]`, Description: `Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.`, - AtLeastOneOf: []string{"group_placement_policy.0.vm_count", "group_placement_policy.0.availability_domain_count"}, }, }, },