summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlavio Percoco <fpercoco@redhat.com>2013-11-13 21:15:34 +0000
committerGerrit Code Review <review@openstack.org>2013-11-13 21:15:34 +0000
commitc42f34442c5b644b450fbe6b1627c0b9065ec887 (patch)
tree845a9725d4b46b93c2a05e94ed38e51bdf95f88d
parentc1e6fe86ad367a24921bae9fb935d5d237f8210a (diff)
downloadoslo-context-c42f34442c5b644b450fbe6b1627c0b9065ec887.tar.gz
Revert "Removes generate_uuid from uuidutils"
This reverts commit 571a78a4bb17a753972e5ef90b0bbdff727fcfa7
-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 cdfe433..02433ea 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-%s' % str(uuid.uuid4())
+ return 'req-%s' % uuidutils.generate_uuid()
class RequestContext(object):