Replace uuidutils.generate_uuid() with str(uuid.uuid4())
uuidutils.generate_uuid() is going to be removed from oslo, so we need to remove its use in tuskar. This patch was use str(uuid.uuid4()) to replace uuidutils.generate_uuid(). Change-Id: I4ac42822fe6269d14abef409a81127ebd4444c8a Closes-Bug: #1253497
This commit is contained in:
parent
af784c1a2e
commit
b257fc4cc9
|
@ -23,12 +23,11 @@ context or provide additional information in their specific WSGI pipeline.
|
|||
"""
|
||||
|
||||
import itertools
|
||||
|
||||
from tuskar.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):
|
||||
|
|
Loading…
Reference in New Issue