Skip to content

Commit b226537

Browse files
committed
Merge branch 'master' into rohit-connection-type-fixes
2 parents 2bed33a + c78d0d8 commit b226537

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 2.3.1 (October 15, 2020)
2+
3+
ENHANCEMENTS:
4+
5+
* Added `in` and `fed` to `environment` section (GH-96)
6+
7+
BUG FIXES:
8+
9+
* Fix a bug where `parse_expression` would present a diff without any changes (GH-95)
10+
* Check for erros when getting collector from client (GF-92)
11+
112
## 2.3.0 (September 29, 2020)
213

314
FEATURES:

sumologic/resource_sumologic_extraction_rule.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ package sumologic
1313

1414
import (
1515
"log"
16+
"strings"
1617

1718
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
1819
)
@@ -39,6 +40,12 @@ func resourceSumologicFieldExtractionRule() *schema.Resource {
3940
"parse_expression": {
4041
Type: schema.TypeString,
4142
Required: true,
43+
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
44+
if strings.Trim(old, "\n ") == strings.Trim(new, "\n ") {
45+
return true
46+
}
47+
return false
48+
},
4249
},
4350
"enabled": {
4451
Type: schema.TypeBool,

sumologic/sumologic_client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ type Client struct {
2727
var endpoints = map[string]string{
2828
"us1": "https://api.sumologic.com/api/",
2929
"us2": "https://api.us2.sumologic.com/api/",
30+
"fed": "https://api.fed.sumologic.com/api/",
3031
"eu": "https://api.eu.sumologic.com/api/",
3132
"au": "https://api.au.sumologic.com/api/",
3233
"de": "https://api.de.sumologic.com/api/",
3334
"jp": "https://api.jp.sumologic.com/api/",
3435
"ca": "https://api.ca.sumologic.com/api/",
36+
"in": "https://api.in.sumologic.com/api/",
3537
}
3638

3739
var rateLimiter = time.NewTicker(time.Minute / 240)

0 commit comments

Comments
 (0)