From dd5139095b37c27711cd8d948cf37851ba74e01d Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 27 Nov 2008 10:26:36 +0000 Subject: [PATCH] ip may be none in qemu pool --- system/TestPool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.0