diff options
author | harlowja <harlowja@virtualbox.rhel> | 2013-02-19 22:51:49 -0800 |
---|---|---|
committer | harlowja <harlowja@virtualbox.rhel> | 2013-02-19 22:51:49 -0800 |
commit | 6d40d5b2e3da9577d4a2686444d47125e62817fe (patch) | |
tree | 3dc28b3e6157513aedb4a21fcabf35aaefaf5e1f /cloudinit/config | |
parent | 6a6a2f7c337e18d84d7031ba60d5adf6a93256fc (diff) | |
download | vyos-cloud-init-6d40d5b2e3da9577d4a2686444d47125e62817fe.tar.gz vyos-cloud-init-6d40d5b2e3da9577d4a2686444d47125e62817fe.zip |
Continue working on integrating requests.
Diffstat (limited to 'cloudinit/config')
-rw-r--r-- | cloudinit/config/cc_phone_home.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/config/cc_phone_home.py b/cloudinit/config/cc_phone_home.py index ae1349eb..90834080 100644 --- a/cloudinit/config/cc_phone_home.py +++ b/cloudinit/config/cc_phone_home.py @@ -19,7 +19,6 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. from cloudinit import templater -from cloudinit import url_helper as uhelp from cloudinit import util from cloudinit.settings import PER_INSTANCE @@ -112,7 +111,8 @@ def handle(name, cfg, cloud, log, args): } url = templater.render_string(url, url_params) try: - uhelp.readurl(url, data=real_submit_keys, retries=tries, sec_between=3) + util.read_file_or_url(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) |