From fec70f9aac0b9da5280653fef1dc80626a23d1d5 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Wed, 9 Dec 2015 21:21:52 +0100 Subject: [PATCH] openstack: remove bugous static IP regexp Instead of duplicating a bugous static IP regexp, use the get_ip() method. Signed-off-by: Loic Dachary --- teuthology/openstack/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/teuthology/openstack/__init__.py b/teuthology/openstack/__init__.py index 4fcb8d77b6..4b14595e6d 100644 --- a/teuthology/openstack/__init__.py +++ b/teuthology/openstack/__init__.py @@ -144,8 +144,7 @@ class OpenStackInstance(object): if not self.ip: self.ip = self.get_floating_ip() if not self.ip: - self.ip = re.findall('([\d.]+)$', - self.get_addresses())[0] + self.ip = self.get_ip('') return self.ip def destroy(self): -- 2.39.5