Skip to content

Commit a5a3d3f

Browse files
committed
More correct processListResult()
1 parent a193b8d commit a5a3d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/fwserver/server_listresource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func processListResult(req list.ListRequest, result list.ListResult) ListResult
133133

134134
if req.IncludeResource {
135135
if result.Resource == nil { // TODO: is result.Resource.Raw.IsNull() a practical concern?
136-
result.Resource = nil
136+
result.Identity = nil
137137
result.Diagnostics.AddWarning(
138138
"Incomplete List Result",
139139
"The provider did not populate the Resource field in the ListResourceResult. This may be due to the provider not supporting this functionality or an error in the provider's implementation.",

0 commit comments

Comments
 (0)