Skip to content

Commit e8caa8b

Browse files
Merge pull request #693 from SumoLogic/rs-remove-regex-in-log-search
Remove regex check in name field in log search resource
2 parents 113a3db + ce2edae commit e8caa8b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ DEPRECATIONS:
66
ENHANCEMENTS:
77
* Added *index_id* attribute to sumologic_scheduled_view. (GH-691)
88
* Added support for configuring sumologic_data_forwarding_rule for sumologic_scheduled_view. (GH-691)
9+
BUG FIXES:
10+
* Remove regex match in resource_sumologic_log_search (GH-693)
911

1012
## 2.31.4 (September 19, 2024)
1113
* **New Resource:** sumologic_data_forwarding_destination (GH-678)

sumologic/resource_sumologic_log_search.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
package sumologic
22

33
import (
4-
"fmt"
54
"log"
6-
"regexp"
75

86
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
97
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
108
)
119

1210
func resourceSumologicLogSearch() *schema.Resource {
1311

14-
nameRegex := `^[a-zA-Z0-9 +%\-@.,_()]+$`
15-
1612
return &schema.Resource{
1713
Create: resourceSumologicLogSearchCreate,
1814
Read: resourceSumologicLogSearchRead,
@@ -28,7 +24,6 @@ func resourceSumologicLogSearch() *schema.Resource {
2824
Required: true,
2925
ValidateFunc: validation.All(
3026
validation.StringLenBetween(1, 255),
31-
validation.StringMatch(regexp.MustCompile(nameRegex), fmt.Sprintf("Must match regex %s", nameRegex)),
3227
),
3328
},
3429
"description": {

0 commit comments

Comments
 (0)