Skip to content

Commit

Permalink
Merge pull request #57 from Freeaqingme/fix56
Browse files Browse the repository at this point in the history
Parse default monitoring value from API as 'inherit' #56
  • Loading branch information
mbardelmeijer authored May 30, 2024
2 parents 1743a99 + 36f65d9 commit 9de5745
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/provider/resource_redirect.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ func resourceRedirectRead(ctx context.Context, d *schema.ResourceData, meta any)
d.SetId(d.Id())
destinations := []map[string]string{}
for _, dst := range respData.Data.Destinations {
if dst.Monitoring == "" {
dst.Monitoring = "inherit"
}

destinations = append(destinations, map[string]string{
"url": dst.Url,
"expression": dst.Expression,
Expand Down

0 comments on commit 9de5745

Please sign in to comment.