Repository: libcloud
Updated Branches:
  refs/heads/trunk 1e3d3cbc6 -> 59cfd4fda


[LIBCLOUD-712] Use get() to take signature version

The pop() call will remove the field from the REGION_DETAILS dictionary,
causing subsequent calls to use the default value.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/8f2af000
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/8f2af000
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/8f2af000

Branch: refs/heads/trunk
Commit: 8f2af00087fb2fb7617ecb7261af67a6c1cf0a50
Parents: cfd815e
Author: Maarten van Schaik <maar...@byte.nl>
Authored: Fri May 15 13:54:12 2015 +0200
Committer: Maarten van Schaik <maar...@byte.nl>
Committed: Fri May 15 13:55:55 2015 +0200

----------------------------------------------------------------------
 libcloud/compute/drivers/ec2.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/8f2af000/libcloud/compute/drivers/ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py
index 5c4763e..9930f73 100644
--- a/libcloud/compute/drivers/ec2.py
+++ b/libcloud/compute/drivers/ec2.py
@@ -5659,7 +5659,7 @@ class EC2NodeDriver(BaseEC2NodeDriver):
         self.region_name = region
         self.api_name = details['api_name']
         self.country = details['country']
-        self.signature_version = details.pop('signature_version',
+        self.signature_version = details.get('signature_version',
                                              DEFAULT_SIGNATURE_VERSION)
 
         host = host or details['endpoint']

Reply via email to