Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Replace bad .Resource ref with .DataSource in datasourcefw.gtpl #39208

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading