From 2f9d27f0abd2dfea599f7f8e3b30c4b1d8b11efc Mon Sep 17 00:00:00 2001 From: Zhongyue Luo Date: Tue, 9 Apr 2013 13:16:05 +0800 Subject: Replaces the standard uuid with common in the context module Common modules can now safely import other common modules since update.py will automatically install dependencies. Change-Id: I9fca5959581ae4f4ab3da20caabbe9c0d53247b6 --- openstack/common/context.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'openstack/common') 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): -- cgit