diff options
author | Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com> | 2015-06-18 13:43:51 +0200 |
---|---|---|
committer | Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com> | 2015-06-18 13:48:53 +0200 |
commit | 407de6815f1462540ba067a16a3c69e590aa3f8e (patch) | |
tree | 459529f3ad80a7c43017c22b55c48f87213533da | |
parent | c4bba6061240627e023cd43b8ddcd5ebd7b76588 (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-x | yardstick/main.py | 2 |
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 |