Skip to content

Commit

Permalink
SUMO-248048: making index_id as a computed field, which makes it avai…
Browse files Browse the repository at this point in the history
…lable after the SV creation
  • Loading branch information
namangoya committed Sep 23, 2024
1 parent 723064f commit 138fe92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sumologic/resource_sumologic_scheduled_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func resourceSumologicScheduledView() *schema.Resource {
"index_id": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"retention_period": {
Type: schema.TypeInt,
Expand Down Expand Up @@ -80,6 +81,7 @@ func resourceSumologicScheduledViewCreate(d *schema.ResourceData, meta interface
}

d.SetId(createdSview.ID)
d.Set("index_id", createdSview.IndexId)
d.Set("retention_period", createdSview.RetentionPeriod)
}

Expand Down

0 comments on commit 138fe92

Please sign in to comment.