diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-10-22 13:24:25 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-10-22 13:24:25 -0700 |
commit | 6a6a2f7c337e18d84d7031ba60d5adf6a93256fc (patch) | |
tree | c79575095b13a0c707ab0adb271ec3f82d47f816 /cloudinit/config/cc_phone_home.py | |
parent | 8036ff686ae7e1a884e6a78022dd86a8eab514ec (diff) | |
download | vyos-cloud-init-6a6a2f7c337e18d84d7031ba60d5adf6a93256fc.tar.gz vyos-cloud-init-6a6a2f7c337e18d84d7031ba60d5adf6a93256fc.zip |
More cleanups for using the requests module.
1. Handle our own retries (so that we can sleep in between)
2. Cleanup the url so that partially invalid (no scheme) urls
will continue working.
3. Allow redirects option now a param.
Diffstat (limited to 'cloudinit/config/cc_phone_home.py')
-rw-r--r-- | cloudinit/config/cc_phone_home.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_phone_home.py b/cloudinit/config/cc_phone_home.py index a268d66f..ae1349eb 100644 --- a/cloudinit/config/cc_phone_home.py +++ b/cloudinit/config/cc_phone_home.py @@ -112,7 +112,7 @@ def handle(name, cfg, cloud, log, args): } url = templater.render_string(url, url_params) try: - uhelp.readurl(url, data=real_submit_keys, retries=tries) + uhelp.readurl(url, data=real_submit_keys, retries=tries, sec_between=3) except: util.logexc(log, ("Failed to post phone home data to" " %s in %s tries"), url, tries) |