summaryrefslogtreecommitdiff
path: root/cloudinit/ec2_utils.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-03-20 08:35:24 -0400
committerScott Moser <smoser@ubuntu.com>2013-03-20 08:35:24 -0400
commit41190448decad51cf76a85d727e6935a8a206cca (patch)
treef4548e8595cafff2ffc13d914dbadef7b8c737db /cloudinit/ec2_utils.py
parentf8318f8eec9c8f1c1676ce6a5b5c2c77fa2f7cc5 (diff)
parentab71760d7e127ae9a3cf31a4f6d7600c945f0dd7 (diff)
downloadvyos-cloud-init-41190448decad51cf76a85d727e6935a8a206cca.tar.gz
vyos-cloud-init-41190448decad51cf76a85d727e6935a8a206cca.zip
use 'requests' rather than urllib2.
This re-works the urlhelper and users of it to use requests rather than urllib2. The primary benefit is that now when using recent versions of python-requests (>= 0.8.8) https certificates will be checked.
Diffstat (limited to 'cloudinit/ec2_utils.py')
-rw-r--r--cloudinit/ec2_utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cloudinit/ec2_utils.py b/cloudinit/ec2_utils.py
index 46b93f39..fcd511c5 100644
--- a/cloudinit/ec2_utils.py
+++ b/cloudinit/ec2_utils.py
@@ -28,6 +28,10 @@ import boto.utils as boto_utils
# would have existed) do not exist due to the blocking
# that occurred.
+# TODO(harlowja): https://github.com/boto/boto/issues/1401
+# When boto finally moves to using requests, we should be able
+# to provide it ssl details, it does not yet, so we can't provide them...
+
def _unlazy_dict(mp):
if not isinstance(mp, (dict)):