summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrian Coca <bcoca@ansible.com>2015-05-01 12:35:42 -0400
committerBrian Coca <bcoca@ansible.com>2015-05-01 12:35:42 -0400
commit0951a74ea0f12b7426817ab5a915e2853502bc01 (patch)
tree1283c1b16b3271a22b757263f8d5e41a2843b486 /lib
parent428f667497c8dfed360c73b8e054579f0d3dd4ef (diff)
parent6e65ccabc3dac26a89cf2b1782ed160327320528 (diff)
downloadansible-0951a74ea0f12b7426817ab5a915e2853502bc01.tar.gz
Merge pull request #10893 from sidick/fix_fetch_url_with_custom_https_port
Allow the use of HTTP on custom ports in the fetch_url function
Diffstat (limited to 'lib')
-rw-r--r--lib/ansible/module_utils/urls.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/module_utils/urls.py b/lib/ansible/module_utils/urls.py
index 962b868ee0..d56cc89395 100644
--- a/lib/ansible/module_utils/urls.py
+++ b/lib/ansible/module_utils/urls.py
@@ -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