Skip to content

Commit b34869c

Browse files
authored
Merge branch 'master' into vsinghal-add-support-for-archive-source
2 parents e2c4a73 + 65d4aa6 commit b34869c

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ FEATURES:
33
* **New Resource:** sumologic_log_search (GH-432)
44
* **New Resource:** sumologic_s3_archive_source (GH-524)
55

6+
BUG FIXES:
7+
* Enforce validation of `inventory_type` for sumologic_cse_inventory_entity_group_configuration ( fix documentation too ) (GH-521)
8+
69
## 2.22.1 (May 15, 2023)
710
FEATURES:
811
* resource/sumologic_slo: Added support for associating tags with an SLO

sumologic/resource_sumologic_cse_inventory_entity_group_configuration.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package sumologic
22

33
import (
44
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
5+
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
56
"log"
67
)
78

@@ -32,8 +33,9 @@ func resourceSumologicCSEInventoryEntityGroupConfiguration() *schema.Resource {
3233
Default: "",
3334
},
3435
"inventory_type": {
35-
Type: schema.TypeString,
36-
Required: true,
36+
Type: schema.TypeString,
37+
Required: true,
38+
ValidateFunc: validation.StringInSlice([]string{"user", "computer"}, false),
3739
},
3840
"inventory_source": {
3941
Type: schema.TypeString,

website/docs/r/cse_inventory_entity_group_configuration.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ resource "sumologic_cse_inventory_entity_group_configuration" "inventory_entity_
1111
criticality = "HIGH"
1212
description = "Inventory entity group description"
1313
group = "admin"
14-
inventory_type = "username"
14+
inventory_type = "user"
1515
inventory_source = "Active Directory"
1616
name = "Inventory entity group configuration"
1717
suppressed = false
@@ -26,7 +26,7 @@ The following arguments are supported:
2626
- `criticality` - (Optional) The entity group configuration criticality Examples: "HIGH", "CRITICALITY".
2727
- `description` - (Optional) The entity group configuration description.
2828
- `group` - (Optional) The entity group configuration inventory group.
29-
- `inventory_type` - (Required) The inventory type Examples: "computer", "username".
29+
- `inventory_type` - (Required) The inventory type Examples: "computer", "user".
3030
- `inventory_source` - (Required) The inventory source Examples: "Active Directory", "Okta".
3131
- `name` - (Required) The entity group configuration name.
3232
- `suppresed` - (Optional) The entity group configuration suppressed value

0 commit comments

Comments
 (0)