From: Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> Date: Wed, 14 Sep 2011 16:30:24 +0000 (+0200) Subject: fix for compat mode X-Git-Tag: tests-5.0-28~1 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=98e4a54138632d3c691a48d6cee189a1e8e0ea80;p=tests.git fix for compat mode --- diff --git a/system/TestPool.py b/system/TestPool.py index 87e1b97..f1ffa6d 100644 --- a/system/TestPool.py +++ b/system/TestPool.py @@ -37,7 +37,7 @@ class TestPool: # let's be flexible def match (self,triple,hostname_or_ip): (h,i,u)=triple - return h.find(hostname_or_ip)>=0 or (i and i.find(hostname_or_ip)>=0) + return h.find(hostname_or_ip)>=0 or (i and i.find(hostname_or_ip)>=0) or hostname_or_ip.find(h)==0 def locate_entry (self, hostname_or_ip): for (h,i,u) in self.pool: