Skip to content

Commit

Permalink
fix: used computed for data_source
Browse files Browse the repository at this point in the history
  • Loading branch information
emhagman committed Mar 27, 2023
1 parent 225659d commit f0b2056
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion internal/data_source_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@ func dataSourceSource() *schema.Resource {
},
"name": {
Type: schema.TypeString,
Required: false,
Computed: true,
},
"deployment_status": {
Type: schema.TypeString,
Computed: true,
},
"enabled": {
Type: schema.TypeBool,
Computed: true,
},
},
}
Expand All @@ -33,5 +41,7 @@ func dataSourceSourceRead(ctx context.Context, d *schema.ResourceData, m interfa
}
d.SetId(sourceID)
d.Set("name", source.Name)
d.Set("deployment_status", source.DeploymentStatus)
d.Set("enabled", source.Enabled)
return diags
}

0 comments on commit f0b2056

Please sign in to comment.