aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>2015-06-18 13:43:51 +0200
committerJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>2015-06-18 13:48:53 +0200
commit407de6815f1462540ba067a16a3c69e590aa3f8e (patch)
tree459529f3ad80a7c43017c22b55c48f87213533da
parentc4bba6061240627e023cd43b8ddcd5ebd7b76588 (diff)
Fix ipaddress bug in main.py
Make sure argument to ip_address() is always unicode. Change-Id: Id319134fb412ba0ba26c57b8b7285b60e7222a79 JIRA:- Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
-rwxr-xr-xyardstick/main.py2
1 files changed, 1 insertions, 1 deletions
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