From 8f4e4096776271dac7f938acc54d0f4dc6ee0f75 Mon Sep 17 00:00:00 2001 From: Brian Warner <warner@allmydata.com> Date: Thu, 8 May 2008 18:01:31 -0700 Subject: [PATCH] check_memory: oops, fix HTTP-based modes: trailing slash in node.url vs no slash --- src/allmydata/test/check_memory.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/allmydata/test/check_memory.py b/src/allmydata/test/check_memory.py index 5dfc7c94..908e21ec 100644 --- a/src/allmydata/test/check_memory.py +++ b/src/allmydata/test/check_memory.py @@ -289,6 +289,9 @@ this file are ignored. def _read(res): # read the node's URL self.webish_url = open(url_file, "r").read().strip() + if self.webish_url[-1] == "/": + # trim trailing slash, since the rest of the code wants it gone + self.webish_url = self.webish_url[:-1] f = open(furl_file, "r") furl = f.read() return furl.strip() -- 2.45.2