Skip to content

Commit

Permalink
blank space strip for hostname and port
Browse files Browse the repository at this point in the history
  • Loading branch information
netort committed May 28, 2018
1 parent c12519c commit 06804bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions yandextank/common/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@ def resolve(self, address_str, do_test=False, explicit_port=False):
port = int(parts[1])
if port is not None:
port = int(port)
address_str = address_str.strip()
port = port.strip()
try:
resolved = self.lookup_fn(address_str, port)
logger.debug("Lookup result: %s", resolved)
Expand Down

0 comments on commit 06804bf

Please sign in to comment.