Skip to content

Commit

Permalink
make vm_count in google_compute_resource_policy as optional (#6694) (#…
Browse files Browse the repository at this point in the history
…12807)

Co-authored-by: Timofey Yushchenko <timus@google.com>
Signed-off-by: Modular Magician <magic-modules@google.com>

Signed-off-by: Modular Magician <magic-modules@google.com>
Co-authored-by: Timofey Yushchenko <timus@google.com>
  • Loading branch information
modular-magician and Timofey Yushchenko committed Oct 17, 2022
1 parent abf19d6 commit a328c24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/6694.txt
@@ -0,0 +1,3 @@
```release-note:bug
compute: Made `vm_count` in `google_compute_resource_policy` optional
```
2 changes: 0 additions & 2 deletions google/resource_compute_resource_policy.go
Expand Up @@ -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,
Expand All @@ -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"},
},
},
},
Expand Down

0 comments on commit a328c24

Please sign in to comment.