mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
None is unfortunately not an integer
This commit is contained in:
parent
5a08da98a3
commit
e3d18048d4
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue