InvalidUUID can not be raised

There is incomplete format in exception's message.

Fixes: bug 1184870

Change-Id: I27f231c8c5cb41b1ec5fdb34fba6a8dff6a556c7
This commit is contained in:
Sergey Skripnick 2013-05-29 13:44:38 +03:00 committed by Zhiteng Huang
parent d1e7c9a220
commit d0c089fbe8
2 changed files with 1 additions and 2 deletions

View File

@ -216,7 +216,7 @@ class ImageUnacceptable(Invalid):
class InvalidUUID(Invalid):
message = _("Expected a uuid but received %(uuid).")
message = _("Expected a uuid but received %(uuid)s.")
class NotFound(CinderException):

View File

@ -258,7 +258,6 @@ class DBAPIVolumeTestCase(BaseTest):
host)
self.assertEqual(target_num, 42)
@test.testtools.skip("bug 1184870")
def test_volume_attached_invalid_uuid(self):
self.assertRaises(exception.InvalidUUID, db.volume_attached, self.ctxt,
42, 'invalid-uuid', '/tmp')