diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-05-01 14:21:17 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-05-01 14:21:17 +0000 |
| commit | ebffe9269df66dfc385338899551abaaef0897e0 (patch) | |
| tree | 3e597cdfb9d7b38684596038caf81ff63ae911fb /nova/api | |
| parent | 69991d60cffbdc715faff2d55727a161f8e57051 (diff) | |
| parent | 37fbfad813e12d00da8f9d3e9f6f13256d5bb7c1 (diff) | |
Merge "Convert the cache key from unicode to a string."
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/ec2/ec2utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/api/ec2/ec2utils.py b/nova/api/ec2/ec2utils.py index 660c0e8d4..150ab9dae 100644 --- a/nova/api/ec2/ec2utils.py +++ b/nova/api/ec2/ec2utils.py @@ -42,6 +42,7 @@ def memoize(func): if not _CACHE: _CACHE = memorycache.get_client() key = "%s:%s" % (func.__name__, reqid) + key = str(key) value = _CACHE.get(key) if value is None: value = func(context, reqid) |
