Commit aed90795 by Michael DeHaan

Merge pull request #1383 from dhozac/fix-for-local-port

None is unfortunately not an integer
parents 23831668 06923cd1
...@@ -402,7 +402,9 @@ class Runner(object): ...@@ -402,7 +402,9 @@ class Runner(object):
transport = None # use Runner setting transport = None # use Runner setting
if delegate_to and actual_host in [ '127.0.0.1', 'localhost' ]: if delegate_to and actual_host in [ '127.0.0.1', 'localhost' ]:
transport = 'local' transport = 'local'
conn = self.connector.connect(actual_host, int(actual_port), transport=transport) if actual_port is not None:
actual_port = int(actual_port)
conn = self.connector.connect(actual_host, actual_port, transport=transport)
if delegate_to: if delegate_to:
conn.delegate = host conn.delegate = host
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment