Use uuid instead of uuidutils
Glance no longer import uuidutils from Oslo. This patch replaces uuidutils.generate_uuid() with str(uuid.uuid4()). Change-Id: I463324cefe488138d709ffe0cc4a587d6ecaa850 Related-Bug: #1253497
This commit is contained in:
parent
a9f355a64f
commit
e4492d54ae
|
@ -513,7 +513,7 @@ class TestSwiftStore(store_tests.BaseTestCase, testtools.TestCase):
|
|||
auth_tok=auth_token)
|
||||
store = self.get_store(context=context)
|
||||
|
||||
image_id = uuidutils.generate_uuid()
|
||||
image_id = str(uuid.uuid4())
|
||||
image_data = StringIO.StringIO('data')
|
||||
uri, _, _, _ = store.add(image_id, image_data, 4)
|
||||
|
||||
|
|
Loading…
Reference in New Issue