Skip to content

Commit 552de35

Browse files
authored
Merge pull request #136 from SumoLogic/ssain-cleanup-collector-resource
deprecate lookup_by_name, destroy; clean up collector tests
2 parents 9af6b72 + adcd27c commit 552de35

File tree

5 files changed

+123
-249
lines changed

5 files changed

+123
-249
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ BUG FIXES:
1616

1717
DEPRECATIONS:
1818

19-
* resource/sumologiccollector_ingest_budget_assignment: Deprecated in favor of assigning ingest budgets through the _budget field attribute of collectors [GH-135]
19+
* resource/sumologic_collector_ingest_budget_assignment: Deprecated in favor of assigning ingest budgets through the _budget field attribute of collectors [GH-135]
20+
* resource/sumologic_collector: Deprecated `lookup_by_name` and `destroy` attributes

sumologic/resource_sumologic_collector.go

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ func resourceSumologicCollector() *schema.Resource {
2727
Type: schema.TypeString,
2828
Optional: true,
2929
ForceNew: false,
30-
Default: "",
3130
},
3231
"category": {
3332
Type: schema.TypeString,
3433
Optional: true,
3534
ForceNew: false,
36-
Default: "",
3735
},
3836
"timezone": {
3937
Type: schema.TypeString,
@@ -48,19 +46,20 @@ func resourceSumologicCollector() *schema.Resource {
4846
},
4947
Optional: true,
5048
ForceNew: false,
51-
Default: "",
5249
},
5350
"lookup_by_name": {
54-
Type: schema.TypeBool,
55-
Optional: true,
56-
ForceNew: false,
57-
Default: false,
51+
Deprecated: "We are deprecating the lookup_by_name attribute as collectors now have data sources.",
52+
Type: schema.TypeBool,
53+
Optional: true,
54+
ForceNew: false,
55+
Default: false,
5856
},
5957
"destroy": {
60-
Type: schema.TypeBool,
61-
Optional: true,
62-
ForceNew: false,
63-
Default: true,
58+
Deprecated: "We are deprecating the destroy attribute as all resources support lifecycle attribute prevent_destroy",
59+
Type: schema.TypeBool,
60+
Optional: true,
61+
ForceNew: false,
62+
Default: true,
6463
},
6564
},
6665
}

0 commit comments

Comments
 (0)