From: Thierry Parmentelat Date: Thu, 27 Nov 2008 10:26:36 +0000 (+0000) Subject: ip may be none in qemu pool X-Git-Tag: tests-4.3-0~60 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=dd5139095b37c27711cd8d948cf37851ba74e01d;p=tests.git ip may be none in qemu pool --- diff --git a/system/TestPool.py b/system/TestPool.py index 3f47340..b516ade 100644 --- a/system/TestPool.py +++ b/system/TestPool.py @@ -35,7 +35,7 @@ class TestPool: # let's be flexible def locate_entry (self, hostname_or_ip, busy=True): for (h,i,u) in self.pool: - if h.find(hostname_or_ip)>=0 or i.find(hostname_or_ip)>=0 : + if h.find(hostname_or_ip)>=0 or (i and i.find(hostname_or_ip)>=0) : if busy: self.busy.append(h) return (h,i,u)