mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-12 07:52:38 +00:00
Use the right names
Missed this in testing because this code was not reached in testing.
This commit is contained in:
parent
4f213e93be
commit
e121cc0a84
@ -514,7 +514,7 @@ class DeepCheckResultsRendererElement(Element, ResultsBase, ReloadMixin):
|
|||||||
return ""
|
return ""
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def servers_with_corrupt_shares(self, ctx, data):
|
def servers_with_corrupt_shares(self, req, tag):
|
||||||
servers = [s
|
servers = [s
|
||||||
for (s, storage_index, sharenum)
|
for (s, storage_index, sharenum)
|
||||||
in self.monitor.get_status().get_corrupt_shares()]
|
in self.monitor.get_status().get_corrupt_shares()]
|
||||||
@ -524,8 +524,8 @@ class DeepCheckResultsRendererElement(Element, ResultsBase, ReloadMixin):
|
|||||||
|
|
||||||
for server in servers:
|
for server in servers:
|
||||||
name = [server.get_name()]
|
name = [server.get_name()]
|
||||||
nick = server.get_nickname()
|
nickname = server.get_nickname()
|
||||||
if nick:
|
if nickname:
|
||||||
name.append(" (%s)" % self._html(nickname))
|
name.append(" (%s)" % self._html(nickname))
|
||||||
problems.append(name)
|
problems.append(name)
|
||||||
|
|
||||||
@ -544,6 +544,7 @@ class DeepCheckResultsRendererElement(Element, ResultsBase, ReloadMixin):
|
|||||||
|
|
||||||
for share in shares:
|
for share in shares:
|
||||||
server, storage_index, sharenum = share
|
server, storage_index, sharenum = share
|
||||||
|
nickname = server.get_nickname()
|
||||||
problem = {
|
problem = {
|
||||||
"serverid": server.get_name(),
|
"serverid": server.get_name(),
|
||||||
"nickname": self._html(nickname),
|
"nickname": self._html(nickname),
|
||||||
|
Loading…
Reference in New Issue
Block a user