From 066aedcfa14b5e12d5db05ed8d300f10024955d5 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 23 Oct 2008 16:03:59 -0700 Subject: [PATCH] webapi deep-check: show the root as , rather than an empty path string --- src/allmydata/web/checker_results.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)) -- 2.45.2