From bbd6bde478daa14d789f826caa2ab4934f9b4f9f Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Fri, 12 Jun 2020 17:47:51 -0400 Subject: [PATCH] Use SlotsSequenceElement to render remaining corrupt shares This was previously not implemented; leaving it as such. --- src/allmydata/web/check_results.py | 9 ++++----- src/allmydata/web/deep-check-and-repair-results.xhtml | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/allmydata/web/check_results.py b/src/allmydata/web/check_results.py index 8b281045b..370f1c308 100644 --- a/src/allmydata/web/check_results.py +++ b/src/allmydata/web/check_results.py @@ -813,11 +813,10 @@ class DeepCheckAndRepairResultsRendererElement(Element, ResultsBase, ReloadMixin @renderer def post_repair_corrupt_shares(self, req, tag): - return [] # TODO - - @renderer - def render_share_problem(self, req, tag): - pass + # TODO: this was not implemented before porting to + # twisted.web.template; leaving it as such. + corrupt = [] + return SlotsSequenceElement(tag, corrupt) @renderer def return_to(self, req, tag): diff --git a/src/allmydata/web/deep-check-and-repair-results.xhtml b/src/allmydata/web/deep-check-and-repair-results.xhtml index 71fa92878..c9bd998e5 100644 --- a/src/allmydata/web/deep-check-and-repair-results.xhtml +++ b/src/allmydata/web/deep-check-and-repair-results.xhtml @@ -61,8 +61,8 @@

Remaining Corrupt Shares

These shares need to be manually inspected and removed.