1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

porting fix #10893 to v2

This commit is contained in:
Brian Coca 2015-05-01 12:39:12 -04:00
parent 0951a74ea0
commit 2f1b561bd3

View file

@ -377,6 +377,7 @@ def fetch_url(module, url, data=None, headers=None, method=None,
netloc = netloc.split('@', 1)[1]
if ':' in netloc:
hostname, port = netloc.split(':', 1)
port = int(port)
else:
hostname = netloc
port = 443