summaryrefslogtreecommitdiffstats
path: root/openstack
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
commit2f9d27f0abd2dfea599f7f8e3b30c4b1d8b11efc (patch)
tree6bb089abeff225dfedff2c00b83cd55f2f414325 /openstack
parentf9207b31f9599d9c8970ad3a3ae5f1e3720526fe (diff)
downloadoslo-2f9d27f0abd2dfea599f7f8e3b30c4b1d8b11efc.tar.gz
oslo-2f9d27f0abd2dfea599f7f8e3b30c4b1d8b11efc.tar.xz
oslo-2f9d27f0abd2dfea599f7f8e3b30c4b1d8b11efc.zip
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
Diffstat (limited to 'openstack')
-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):