diff options
author | Zhongyue Luo <zhongyue.nah@intel.com> | 2013-11-13 13:35:30 +0800 |
---|---|---|
committer | Zhongyue Luo <zhongyue.nah@intel.com> | 2013-11-13 13:48:14 +0800 |
commit | c1e6fe86ad367a24921bae9fb935d5d237f8210a (patch) | |
tree | d2d44626256f2fe2c0417c1ede337900aaf86cb4 | |
parent | 334159b2ddd678c92c0a71920ead76ac6775dcb6 (diff) | |
download | oslo-context-c1e6fe86ad367a24921bae9fb935d5d237f8210a.tar.gz |
Removes generate_uuid from uuidutils
As discussed at the summit, generating the UUID string seems
trivial enough to not need a function. Each project should define
its uuid generation helper function according to its required format.
Change-Id: I2689a5d810e1b7663bc6b77385b2913844c70b9e
-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): |