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:
zhangguoqing 2016-12-07 10:05:09 +00:00
parent 5f905c86c9
commit 79a311b60a

View File

@ -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):