summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongyue Luo <zhongyue.nah@intel.com>2013-04-09 13:16:05 +0800
committerZhongyue Luo <zhongyue.nah@intel.com>2013-04-09 19:50:04 +0800
commite5c925e33ff92a70494f720de4479221c93452ba (patch)
tree4aa13c360cbb558fae4fe8625a14ad78122bad9e
parentabe27c38b5cf34eb9152daf9e1dbb75a1626f989 (diff)
downloadoslo-context-e5c925e33ff92a70494f720de4479221c93452ba.tar.gz
Replaces the standard uuid with common in the context module
Common modules can now safely import other common modules since update.py will automatically install dependencies. Change-Id: I9fca5959581ae4f4ab3da20caabbe9c0d53247b6
-rw-r--r--openstack/common/context.py5
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):