diff options
author | Zhongyue Luo <zhongyue.nah@intel.com> | 2013-11-22 08:37:21 +0800 |
---|---|---|
committer | Zhongyue Luo <zhongyue.nah@intel.com> | 2013-11-22 11:31:12 +0800 |
commit | a8e60399051b4a0e6065d69ea3b682861ce3883f (patch) | |
tree | d2d44626256f2fe2c0417c1ede337900aaf86cb4 | |
parent | c42f34442c5b644b450fbe6b1627c0b9065ec887 (diff) | |
download | oslo-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.py | 5 |
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): |