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:
@@ -15,8 +15,8 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import functools
|
import functools
|
||||||
import uuid
|
|
||||||
|
|
||||||
|
from oslo_utils import uuidutils
|
||||||
import six
|
import six
|
||||||
from testtools import testcase
|
from testtools import testcase
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@ import tooz
|
|||||||
|
|
||||||
|
|
||||||
def get_random_uuid():
|
def get_random_uuid():
|
||||||
return str(uuid.uuid4()).encode('ascii')
|
return uuidutils.generate_uuid().encode('ascii')
|
||||||
|
|
||||||
|
|
||||||
def _skip_decorator(func):
|
def _skip_decorator(func):
|
||||||
|
|||||||
Reference in New Issue
Block a user