diff options
| author | root <root@ubuntu> | 2010-12-15 13:14:28 -0800 |
|---|---|---|
| committer | root <root@ubuntu> | 2010-12-15 13:14:28 -0800 |
| commit | e1da5d66b2e33a043e7e9ee357d9769276d6e302 (patch) | |
| tree | 44bb9acfbb5d3e76480eed523468e9ee9c36da48 | |
| parent | dd4ee43cc2042299ed7a56b4690999fa1df120a1 (diff) | |
| download | nova-e1da5d66b2e33a043e7e9ee357d9769276d6e302.tar.gz nova-e1da5d66b2e33a043e7e9ee357d9769276d6e302.tar.xz nova-e1da5d66b2e33a043e7e9ee357d9769276d6e302.zip | |
memcached requires strings not unicode
| -rw-r--r-- | nova/api/ec2/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/ec2/__init__.py b/nova/api/ec2/__init__.py index 5ae15f2ae..def0ee207 100644 --- a/nova/api/ec2/__init__.py +++ b/nova/api/ec2/__init__.py @@ -91,7 +91,7 @@ class Lockout(wsgi.Middleware): @webob.dec.wsgify def __call__(self, req): - access_key = req.params['AWSAccessKeyId'] + access_key = str(req.params['AWSAccessKeyId']) failures_key = "authfailures-%s" % access_key failures = int(self.mc.get(failures_key) or 0) if failures >= FLAGS.lockout_attempts: |
