mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-11 07:23:04 +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):
|
def render_object(self, ctx, data):
|
||||||
path, r = 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()))
|
ctx.fillSlots("healthy", str(r.is_healthy()))
|
||||||
storage_index = r.get_storage_index()
|
storage_index = r.get_storage_index()
|
||||||
ctx.fillSlots("storage_index", self._render_si_link(ctx, storage_index))
|
ctx.fillSlots("storage_index", self._render_si_link(ctx, storage_index))
|
||||||
|
Loading…
Reference in New Issue
Block a user