Skip to content

Commit

Permalink
Diagnostics append
Browse files Browse the repository at this point in the history
  • Loading branch information
rorymalcolm committed May 1, 2024
1 parent 4ca6abe commit dbb510a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/incident_user_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ func (i *IncidentUserDataSource) Metadata(ctx context.Context, req datasource.Me
func (i *IncidentUserDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
var data IncidentUserDataSourceModel
req.Config.Get(ctx, &data)
resp.Diagnostics.Append(req.Config.Get(ctx, &data)...)

var user *client.UserWithRolesV2
if !data.ID.IsNull() {
resp.Diagnostics.Append(req.Config.Get(ctx, &data)...)
if resp.Diagnostics.HasError() {
return
}
Expand Down

0 comments on commit dbb510a

Please sign in to comment.