Skip to content

Commit

Permalink
SUMO-247498 Fix the compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
yuting-liu committed Sep 24, 2024
1 parent b47be65 commit faa0059
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sumologic/sumologic_sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ func resourceSumologicSource() *schema.Resource {
},
},
"hash_algorithm": {
Type: schema.TypeString,
Optional: true
Default: nil,
ValidateFunc: validation.StringInSlice([]string{"MD5", "SHA-256"}, false)
Type: schema.TypeString,
Optional: true,
Default: nil,
ValidateFunc: validation.StringInSlice([]string{"MD5", "SHA-256"}, false),
},
"cutoff_timestamp": {
Type: schema.TypeInt,
Expand Down Expand Up @@ -241,7 +241,7 @@ func resourceToSource(d *schema.ResourceData) Source {
source.ForceTimeZone = d.Get("force_timezone").(bool)
source.DefaultDateFormats = getDefaultDateFormats(d)
source.Filters = getFilters(d)
source.HashAlgorithm = d.get("hash_algorithm").(string)
source.HashAlgorithm = d.Get("hash_algorithm").(string)
source.CutoffTimestamp = d.Get("cutoff_timestamp").(int)
source.CutoffRelativeTime = d.Get("cutoff_relative_time").(string)
source.Fields = d.Get("fields").(map[string]interface{})
Expand Down

0 comments on commit faa0059

Please sign in to comment.