summaryrefslogtreecommitdiff
path: root/keystoneclient/contrib
diff options
context:
space:
mode:
authorMarounMaroun <maroun.bassam@gmail.com>2017-01-23 15:11:09 +0200
committerSamuel de Medeiros Queiroz <samueldmq@gmail.com>2017-01-27 02:01:01 +0000
commit2e6459f2f1c0c574c76a3ddf55a2fbb85cf7b7ef (patch)
tree60ac9fc18b3f8b15e47786daff3207aa41f7c7f8 /keystoneclient/contrib
parentf9e054fd744791c5cd79a6eaa59d729d66bf34fe (diff)
downloadpython-keystoneclient-2e6459f2f1c0c574c76a3ddf55a2fbb85cf7b7ef.tar.gz
Fix boto version strip regex
the current regex pattern will match incorrect strings like: Boto/2x0t2 Change-Id: I260f4e0d98f082172a3a67a1fbaa05da5369ea49 Closes-Bug: #1658639
Diffstat (limited to 'keystoneclient/contrib')
-rw-r--r--keystoneclient/contrib/ec2/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/keystoneclient/contrib/ec2/utils.py b/keystoneclient/contrib/ec2/utils.py
index f7fb8a1..dcd3ff5 100644
--- a/keystoneclient/contrib/ec2/utils.py
+++ b/keystoneclient/contrib/ec2/utils.py
@@ -225,7 +225,7 @@ class Ec2Signer(object):
# port if we detect an old boto version. FIXME: remove when all
# distros package boto >= 2.9.3, this is a transitional workaround
user_agent = headers_lower.get('user-agent', '')
- strip_port = re.match('Boto/2.[0-9].[0-2]', user_agent)
+ strip_port = re.match('Boto/2\.[0-9]\.[0-2]', user_agent)
header_list = []
sh_str = auth_param('SignedHeaders')