diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-04-20 00:54:27 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-04-20 00:54:27 +0000 |
| commit | cdb376cc893ffa89263786774b8afee571b536b9 (patch) | |
| tree | d5abad1a471456aeab797e4c59b44b13085f822f /openstack | |
| parent | be84db3ab24ef94b6ec457bb299d48c51575e8a6 (diff) | |
| parent | 2f9d27f0abd2dfea599f7f8e3b30c4b1d8b11efc (diff) | |
| download | oslo-cdb376cc893ffa89263786774b8afee571b536b9.tar.gz oslo-cdb376cc893ffa89263786774b8afee571b536b9.tar.xz oslo-cdb376cc893ffa89263786774b8afee571b536b9.zip | |
Merge "Replaces the standard uuid with common in the context module"
Diffstat (limited to 'openstack')
| -rw-r--r-- | openstack/common/context.py | 5 |
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): |
