From: Loic Dachary Date: Wed, 9 Dec 2015 20:21:52 +0000 (+0100) Subject: openstack: remove bugous static IP regexp X-Git-Tag: 1.1.0~714^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=fec70f9aac0b9da5280653fef1dc80626a23d1d5;p=teuthology.git openstack: remove bugous static IP regexp Instead of duplicating a bugous static IP regexp, use the get_ip() method. Signed-off-by: Loic Dachary --- 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):