summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-04-07 15:57:38 +0000
committerGerrit Code Review <review@openstack.org>2014-04-07 15:57:38 +0000
commit13d6d6308a17adfb5fe202e1300da3f9d3e73e44 (patch)
tree05f1e36bcb783703c07151c7ca94714ab7115532
parent52289ac48f7867a92051dc5ece05e992fe40a160 (diff)
parentda29b0b85f97f217f4c73a818e6453cb28e8da07 (diff)
downloadoslo-context-13d6d6308a17adfb5fe202e1300da3f9d3e73e44.tar.gz
Merge "Python 3: enable tests/unit/middleware/test_request_id.py"
-rw-r--r--openstack/common/context.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/context.py b/openstack/common/context.py
index 09019ee..3eeb445 100644
--- a/openstack/common/context.py
+++ b/openstack/common/context.py
@@ -25,7 +25,7 @@ import uuid
def generate_request_id():
- return 'req-%s' % str(uuid.uuid4())
+ return b'req-' + str(uuid.uuid4()).encode('ascii')
class RequestContext(object):