summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-03-19 10:05:51 -0400
committerScott Moser <smoser@ubuntu.com>2013-03-19 10:05:51 -0400
commit92b23e3d27623440b3b37ccb9d865b235a99f5f1 (patch)
tree3f1227a0a62e2ca5c086b56c5b8870bd4dceb2f0 /cloudinit
parentfc77e3f4bc9b0736246abd05bfca8dda04cff0eb (diff)
downloadvyos-cloud-init-92b23e3d27623440b3b37ccb9d865b235a99f5f1.tar.gz
vyos-cloud-init-92b23e3d27623440b3b37ccb9d865b235a99f5f1.zip
set 'allow_redirects' to True by default
the previous implementation of url_helper.readurl() would default to allow_redirects being true. So, for backwards compat, we should keep that behavior.
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/url_helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/url_helper.py b/cloudinit/url_helper.py
index ac6f25db..6b4516e0 100644
--- a/cloudinit/url_helper.py
+++ b/cloudinit/url_helper.py
@@ -103,7 +103,7 @@ class UrlError(IOError):
def readurl(url, data=None, timeout=None, retries=0, sec_between=1,
headers=None, ssl_details=None, check_status=True,
- allow_redirects=False):
+ allow_redirects=True):
url = _cleanurl(url)
req_args = {
'url': url,