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:
Zhongyue Luo 2014-02-17 14:53:01 +08:00
parent a9f355a64f
commit e4492d54ae
1 changed files with 1 additions and 1 deletions

View File

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