mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 06:42:26 +00:00
webapi deep-check: show the root as <root>, rather than an empty path string
This commit is contained in:
parent
54c0ffd214
commit
066aedcfa1
@ -365,7 +365,11 @@ class DeepCheckResults(rend.Page, ResultsBase, ReloadMixin):
|
||||
|
||||
def render_object(self, ctx, data):
|
||||
path, r = data
|
||||
ctx.fillSlots("path", "/".join(self._html(path)))
|
||||
if path:
|
||||
pathstring = "/".join(self._html(path))
|
||||
else:
|
||||
pathstring = "<root>"
|
||||
ctx.fillSlots("path", pathstring)
|
||||
ctx.fillSlots("healthy", str(r.is_healthy()))
|
||||
storage_index = r.get_storage_index()
|
||||
ctx.fillSlots("storage_index", self._render_si_link(ctx, storage_index))
|
||||
|
Loading…
Reference in New Issue
Block a user