summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongyue Luo <zhongyue.nah@intel.com>2013-11-22 08:37:21 +0800
committerZhongyue Luo <zhongyue.nah@intel.com>2013-11-22 11:31:12 +0800
commita8e60399051b4a0e6065d69ea3b682861ce3883f (patch)
treed2d44626256f2fe2c0417c1ede337900aaf86cb4
parentc42f34442c5b644b450fbe6b1627c0b9065ec887 (diff)
downloadoslo-context-a8e60399051b4a0e6065d69ea3b682861ce3883f.tar.gz
Remove uuidutils imports in oslo modules
The only use of uuidutils in oslo-incubator is generate_uuid which could be replaced with uuid.uuid4(). Droping the dependency would help deprecating/removing uuidutils in the future. Partial-bug: #1253497 Change-Id: Ie0bc94e0b4aea6563f138c0f09c54c323ba23279
-rw-r--r--openstack/common/context.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/openstack/common/context.py b/openstack/common/context.py
index 02433ea..cdfe433 100644
--- a/openstack/common/context.py
+++ b/openstack/common/context.py
@@ -23,12 +23,11 @@ context or provide additional information in their specific WSGI pipeline.
"""
import itertools
-
-from openstack.common import uuidutils
+import uuid
def generate_request_id():
- return 'req-%s' % uuidutils.generate_uuid()
+ return 'req-%s' % str(uuid.uuid4())
class RequestContext(object):