Skip to content

Commit 4c4da34

Browse files
committed
fix: int64 conversion for collector_id in datasource
1 parent ce5df0c commit 4c4da34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sumologic/data_source_sumologic_http_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func dataSourceSumologicHTTPSourceRead(d *schema.ResourceData, meta interface{})
5555
c := meta.(*Client)
5656

5757
id, _ := strconv.Atoi(d.Id())
58-
source, err := c.GetSourceName(d.Get("collector_id").(int64), d.Get("name").(string))
58+
source, err := c.GetSourceName(int64(d.Get("collector_id").(int)), d.Get("name").(string))
5959

6060
if err != nil {
6161
return err

0 commit comments

Comments
 (0)