From 0b2d254ff5b5088370ff459ed27dc7784e8dcb77 Mon Sep 17 00:00:00 2001 From: Luong Anh Tuan Date: Mon, 5 Dec 2016 14:20:00 +0700 Subject: [PATCH] Replaces uuid.uuid4 with uuidutils.generate_uuid() Openstack common has a wrapper for generating uuids.We should use that function when generating uuids for consistency. Change-Id: I9e7d8a1fcfb3b378b2ab397a0ba932d7aac17e26 Closes-Bug: #1082248 --- synergy/common/context.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synergy/common/context.py b/synergy/common/context.py index cf2e96d..7b56b32 100644 --- a/synergy/common/context.py +++ b/synergy/common/context.py @@ -1,8 +1,8 @@ import copy import six -import uuid from datetime import datetime +from oslo_utils import uuidutils __author__ = "Lisa Zangrando" @@ -25,7 +25,7 @@ permissions and limitations under the License.""" def generate_request_id(): - return 'req-' + str(uuid.uuid4()) + return 'req-' + uuidutils.generate_uuid() class RequestContext(object):