Skip to content

Commit

Permalink
Update pipeline build function
Browse files Browse the repository at this point in the history
  • Loading branch information
joboccara committed Feb 4, 2025
1 parent 4c20e88 commit 8f6f2fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions datadog/resource_datadog_logs_custom_pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -763,10 +763,10 @@ func buildDatadogPipeline(d *schema.ResourceData) (*datadogV1.LogsPipeline, erro
var ddPipeline datadogV1.LogsPipeline
ddPipeline.SetName(d.Get("name").(string))
ddPipeline.SetIsEnabled(d.Get("is_enabled").(bool))
tagsInterface := d.Get("tags").([]interface{})
tags := make([]string, len(tagsInterface))
for i, v := range tagsInterface {
tags[i] = v.(string)
tagsSet := d.Get("tags").(*schema.Set).List()
tags := []string{}
for _, tag := range tagsSet {
tags = append(tags, tag.(string))
}
ddPipeline.SetTags(tags)
ddPipeline.SetDescription(d.Get("description").(string))
Expand Down

0 comments on commit 8f6f2fa

Please sign in to comment.