From 407de6815f1462540ba067a16a3c69e590aa3f8e Mon Sep 17 00:00:00 2001 From: Jo¶rgen Karlsson Date: Thu, 18 Jun 2015 13:43:51 +0200 Subject: Fix ipaddress bug in main.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make sure argument to ip_address() is always unicode. Change-Id: Id319134fb412ba0ba26c57b8b7285b60e7222a79 JIRA:- Signed-off-by: Jo¶rgen Karlsson --- yardstick/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yardstick/main.py') diff --git a/yardstick/main.py b/yardstick/main.py index 8f017431b..e8f6b54aa 100755 --- a/yardstick/main.py +++ b/yardstick/main.py @@ -97,7 +97,7 @@ def atexit_handler(): def is_ip_addr(addr): '''check if string addr is an IP address''' try: - ipaddress.ip_address(addr) + ipaddress.ip_address(unicode(addr)) return True except ValueError: return False -- cgit 1.2.3-korg