[ https://issues.apache.org/jira/browse/LIBCLOUD-712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14545500#comment-14545500 ]
ASF subversion and git services commented on LIBCLOUD-712: ---------------------------------------------------------- Commit 8f2af00087fb2fb7617ecb7261af67a6c1cf0a50 in libcloud's branch refs/heads/trunk from [~mvs] [ https://git-wip-us.apache.org/repos/asf?p=libcloud.git;h=8f2af00 ] [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. > EC2 driver modifies region details > ---------------------------------- > > Key: LIBCLOUD-712 > URL: https://issues.apache.org/jira/browse/LIBCLOUD-712 > Project: Libcloud > Issue Type: Bug > Components: Compute > Reporter: Maarten van Schaik > > When creating an EC2 connection, the signature version is taken from the > region details using a pop-operation. This modifies the configuration: > subsequent connections will not have the signature version available and will > fall back to version 2. > Example: > {code} > from libcloud.compute.drivers.ec2 import EC2NodeDriver > drv = EC2NodeDriver('abc', region='eu-central-1') > print drv.signature_version > drv2 = EC2NodeDriver('abc', region='eu-central-1') > print drv2.signature_version > {code} > Prints: > {code} > 4 > 2 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)