mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 00:03:10 +00:00
porting fix #10893 to v2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user