Skip to content

Commit 01f7e04

Browse files
marcinbelczewskiMarcin Belczewski
andauthored
fix: compilation errors in resource not found code in Read method (#43663)
Co-authored-by: Marcin Belczewski <[email protected]>
1 parent 65dad82 commit 01f7e04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

skaff/resource/resourcefw.gtpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ func (r *resource{{ .Resource }}) Read(ctx context.Context, req resource.ReadReq
359359
// TIP: -- 4. Remove resource from state if it is not found
360360
{{- end }}
361361
if tfresource.NotFound(err) {
362-
smerr.append(ctx, &resp.Diagnostics, fwdiag.NewResourceNotFoundWarningDiagnostic(err))
362+
resp.Diagnostics.Append(fwdiag.NewResourceNotFoundWarningDiagnostic(err))
363363
resp.State.RemoveResource(ctx)
364364
return
365365
}

0 commit comments

Comments
 (0)