From: Brian Warner Date: Thu, 23 Oct 2008 23:03:59 +0000 (-0700) Subject: webapi deep-check: show the root as , rather than an empty path string X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/frontends/%22news.html/?a=commitdiff_plain;h=066aedcfa14b5e12d5db05ed8d300f10024955d5;p=tahoe-lafs%2Ftahoe-lafs.git webapi deep-check: show the root as , rather than an empty path string --- diff --git a/src/allmydata/web/checker_results.py b/src/allmydata/web/checker_results.py index 4c7030c4..477a01c5 100644 --- a/src/allmydata/web/checker_results.py +++ b/src/allmydata/web/checker_results.py @@ -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 = "" + 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))