From 5cada1a6c48c15120cb0fe000dc04a2e217f98b0 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Fri, 22 Apr 2016 00:38:47 +0100 Subject: [PATCH] distro-tool: treat 350 status as valid for ftp --- tools/distro-tool | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/distro-tool b/tools/distro-tool index 8fd9df2996..c9f6595717 100755 --- a/tools/distro-tool +++ b/tools/distro-tool @@ -274,7 +274,12 @@ class MyUtility(object): MyUtility.logmsg(msgs, 3, "[\n%s]" % headers) # Success if HTTP 200 - result = True if MyUtility.search_HTTP_OK.search(headers) else False + if http_code == "200" or MyUtility.search_HTTP_OK.search(headers): + result = True + elif http_code == "350" and url.startswith("ftp:"): + result = True + else: + result = False tDelta = (datetime.datetime.now() - ts)