summaryrefslogtreecommitdiff
path: root/ironic/openstack
diff options
context:
space:
mode:
authorLucas Alvares Gomes <lucasagomes@gmail.com>2013-11-26 10:21:12 +0000
committerLucas Alvares Gomes <lucasagomes@gmail.com>2013-11-26 10:31:50 +0000
commit0716abc8fdb857de27ec197144c6da4e77b1365e (patch)
tree38c6d8c6b9a7d59e5ba67c968aee64c2acb984e1 /ironic/openstack
parente55928526f59ed7b178b5e6e242f986b90aa2a82 (diff)
downloadironic-0716abc8fdb857de27ec197144c6da4e77b1365e.tar.gz
Sync common.context changes from olso
Sync changes to common.context, to remove the dependency on the uuidutils module that's going to be removed from oslo. Change-Id: Ibae8af811d7f5b7d6a1499f35288073e5d383e64
Diffstat (limited to 'ironic/openstack')
-rw-r--r--ironic/openstack/common/context.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/ironic/openstack/common/context.py b/ironic/openstack/common/context.py
index 8dd7936a6..2e46d7024 100644
--- a/ironic/openstack/common/context.py
+++ b/ironic/openstack/common/context.py
@@ -1,5 +1,3 @@
-# vim: tabstop=4 shiftwidth=4 softtabstop=4
-
# Copyright 2011 OpenStack Foundation.
# All Rights Reserved.
#
@@ -23,12 +21,11 @@ context or provide additional information in their specific WSGI pipeline.
"""
import itertools
-
-from ironic.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):