diff options
author | Simon Dick <simon.dick@sainsburysentertainment.co.uk> | 2015-05-01 13:52:29 +0100 |
---|---|---|
committer | Simon Dick <simon.dick@sainsburysentertainment.co.uk> | 2015-05-01 13:52:29 +0100 |
commit | 6e65ccabc3dac26a89cf2b1782ed160327320528 (patch) | |
tree | 9d7b5d57bcb0c4f099b6b336ad038d5efd03f35d | |
parent | 1c250ee4e7aa7488c56e4b6de62d411908fd91d3 (diff) | |
download | ansible-6e65ccabc3dac26a89cf2b1782ed160327320528.tar.gz |
Allow the use of HTTP on custom ports in the fetch_url function
-rw-r--r-- | lib/ansible/module_utils/urls.py | 1 |
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 |