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: If6b479ab46346b5f141638a5f0c10130bd0696a7 Closes-Bug: #1082248
This commit is contained in:
parent
5f905c86c9
commit
79a311b60a
@ -15,8 +15,8 @@
|
||||
# under the License.
|
||||
|
||||
import functools
|
||||
import uuid
|
||||
|
||||
from oslo_utils import uuidutils
|
||||
import six
|
||||
from testtools import testcase
|
||||
|
||||
@ -24,7 +24,7 @@ import tooz
|
||||
|
||||
|
||||
def get_random_uuid():
|
||||
return str(uuid.uuid4()).encode('ascii')
|
||||
return uuidutils.generate_uuid().encode('ascii')
|
||||
|
||||
|
||||
def _skip_decorator(func):
|
||||
|
Loading…
x
Reference in New Issue
Block a user