Skip to content

Commit

Permalink
fix: Replace bad .Resource ref with .DataSource in datasourcefw.gtpl
Browse files Browse the repository at this point in the history
  • Loading branch information
acwwat committed Sep 7, 2024
1 parent ea069cf commit a05fc7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skaff/datasource/datasourcefw.gtpl
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ func (d *dataSource{{ .DataSource }}) Read(ctx context.Context, req datasource.R

{{ if .IncludeComments -}}
// TIP: -- 4. Set the ID, arguments, and attributes
// Using a field name prefix allows mapping fields such as `{{ .Resource }}Id` to `ID`
// Using a field name prefix allows mapping fields such as `{{ .DataSource }}Id` to `ID`
{{- end }}
resp.Diagnostics.Append(flex.Flatten(ctx, out, &data, flex.WithFieldNamePrefix("{{ .Resource }}"))...)
resp.Diagnostics.Append(flex.Flatten(ctx, out, &data, flex.WithFieldNamePrefix("{{ .DataSource }}"))...)
if resp.Diagnostics.HasError() {
return
}
Expand Down

0 comments on commit a05fc7f

Please sign in to comment.