]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
webapi deep-check: show the root as <root>, rather than an empty path string
authorBrian Warner <warner@lothar.com>
Thu, 23 Oct 2008 23:03:59 +0000 (16:03 -0700)
committerBrian Warner <warner@lothar.com>
Thu, 23 Oct 2008 23:03:59 +0000 (16:03 -0700)
src/allmydata/web/checker_results.py

index 4c7030c45c695ed41f9dbb0fa7d67e633f28d53a..477a01c586ce3d76ab7477591ae9fa1b2cf675ad 100644 (file)
@@ -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))