Skip to content

Commit 11e7ada

Browse files
convert analytics tier to lowercase
1 parent 971d6c2 commit 11e7ada

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sumologic/resource_sumologic_partition.go

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

33
import (
44
"log"
5+
"strings"
56

67
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
78
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
@@ -142,7 +143,7 @@ func resourceSumologicPartitionUpdate(d *schema.ResourceData, meta interface{})
142143

143144
func resourceToPartition(d *schema.ResourceData) Partition {
144145

145-
analyticsTier := d.Get("analytics_tier").(string)
146+
analyticsTier := strings.ToLower(d.Get("analytics_tier").(string))
146147
isIncludedInDefaultSearch := d.Get("is_included_in_default_search").(bool)
147148

148149
var isIncludedInDefaultSearchPtr *bool

0 commit comments

Comments
 (0)