From 19f6ec71026fa3ed70e3ec978a634208c14f7b75 Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Fri, 12 Jun 2020 17:43:47 -0400 Subject: [PATCH] Use SlotsSequenceElement to render servers with 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 f8ad4241a..8b281045b 100644 --- a/src/allmydata/web/check_results.py +++ b/src/allmydata/web/check_results.py @@ -800,11 +800,10 @@ class DeepCheckAndRepairResultsRendererElement(Element, ResultsBase, ReloadMixin @renderer def servers_with_corrupt_shares(self, req, tag): - return [] # TODO - - @renderer - def server_problem(self, req, tag): - pass + # TODO: this was originally unimplemented before porting to + # twisted.web.template; leaving it as such. + corrupt = [] + return SlotsSequenceElement(tag, corrupt) @renderer def remaining_corrupt_shares_p(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 b0700a71f..71fa92878 100644 --- a/src/allmydata/web/deep-check-and-repair-results.xhtml +++ b/src/allmydata/web/deep-check-and-repair-results.xhtml @@ -52,8 +52,8 @@

Servers on which corrupt shares were found