Skip to content

Commit

Permalink
Don't remove from state
Browse files Browse the repository at this point in the history
  • Loading branch information
mfl-code committed Aug 21, 2024
1 parent f773330 commit 34f40b8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/provider/namespace_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ func (r *NamespaceResource) Read(ctx context.Context, req resource.ReadRequest,
errCode := status.Code(err)
if errCode == codes.NotFound {
tflog.Warn(ctx, "Namespace not found", map[string]interface{}{"err": err, "namespace": namespace})
resp.State.RemoveResource(ctx)
return
} else {
resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to read Namespace info, got error: %s", err))
Expand Down

0 comments on commit 34f40b8

Please sign in to comment.