Use uuidutils instead of uuid.uuid4()
Openstack common has a wrapper for generating uuids. We should only use that function when generating uuids for consistency. Change-Id: Ic36426c6ab4228826b66a926e74e3331e9a9abdc Closes-Bug: #1082248
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import uuid
|
from oslo_utils import uuidutils
|
||||||
|
|
||||||
from keystoneclient.fixture import v2 as ks_v2_fixture
|
from keystoneclient.fixture import v2 as ks_v2_fixture
|
||||||
from keystoneclient.fixture import v3 as ks_v3_fixture
|
from keystoneclient.fixture import v3 as ks_v3_fixture
|
||||||
@@ -49,7 +49,7 @@ V3_VERSION = {'id': 'v3.0',
|
|||||||
'status': 'stable',
|
'status': 'stable',
|
||||||
'updated': UPDATED}
|
'updated': UPDATED}
|
||||||
|
|
||||||
TOKENID = uuid.uuid4().hex
|
TOKENID = uuidutils.generate_uuid()
|
||||||
|
|
||||||
|
|
||||||
def _create_version_list(versions):
|
def _create_version_list(versions):
|
||||||
|
Reference in New Issue
Block a user