diff options
author | Joshua Harlow <harlowja@gmail.com> | 2014-02-08 13:39:27 -0800 |
---|---|---|
committer | Joshua Harlow <harlowja@gmail.com> | 2014-02-08 13:39:27 -0800 |
commit | 1597aca9b0606d02c045549afce4395370502231 (patch) | |
tree | ace7a61f7414d549301ab20869444d6602671a50 /cloudinit/url_helper.py | |
parent | 1edc8d3697d05f66195b9a425771f60cf6f9c27e (diff) | |
download | vyos-cloud-init-1597aca9b0606d02c045549afce4395370502231.tar.gz vyos-cloud-init-1597aca9b0606d02c045549afce4395370502231.zip |
Spacing and comment cleanup
Diffstat (limited to 'cloudinit/url_helper.py')
-rw-r--r-- | cloudinit/url_helper.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cloudinit/url_helper.py b/cloudinit/url_helper.py index 43e879d2..c116a484 100644 --- a/cloudinit/url_helper.py +++ b/cloudinit/url_helper.py @@ -169,8 +169,8 @@ def _get_ssl_args(url, ssl_details): def readurl(url, data=None, timeout=None, retries=0, sec_between=1, - headers=None, headers_cb=None, ssl_details=None, - check_status=True, allow_redirects=True, exception_cb=None): + headers=None, headers_cb=None, ssl_details=None, + check_status=True, allow_redirects=True, exception_cb=None): url = _cleanurl(url) req_args = { 'url': url, @@ -206,12 +206,11 @@ def readurl(url, data=None, timeout=None, retries=0, sec_between=1, def _cb(url): return headers headers_cb = _cb - if data: - # Do this after the log (it might be large) req_args['data'] = data if sec_between is None: sec_between = -1 + excps = [] # Handle retrying ourselves since the built-in support # doesn't handle sleeping between tries... |