diff options
author | Jenkins <jenkins@review.openstack.org> | 2013-04-20 00:54:27 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-04-20 00:54:27 +0000 |
commit | 079cc070e04eefba3342bc59fef13455024f7cfe (patch) | |
tree | 4aa13c360cbb558fae4fe8625a14ad78122bad9e | |
parent | abe27c38b5cf34eb9152daf9e1dbb75a1626f989 (diff) | |
parent | e5c925e33ff92a70494f720de4479221c93452ba (diff) | |
download | oslo-context-079cc070e04eefba3342bc59fef13455024f7cfe.tar.gz |
Merge "Replaces the standard uuid with common in the context module"
-rw-r--r-- | openstack/common/context.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openstack/common/context.py b/openstack/common/context.py index e9cfd73..c872331 100644 --- a/openstack/common/context.py +++ b/openstack/common/context.py @@ -23,11 +23,12 @@ context or provide additional information in their specific WSGI pipeline. """ import itertools -import uuid + +from openstack.common import uuidutils def generate_request_id(): - return 'req-' + str(uuid.uuid4()) + return 'req-%s' % uuidutils.generate_uuid() class RequestContext(object): |