Skip to content

Commit

Permalink
InvalidUUID can not be raised
Browse files Browse the repository at this point in the history
There is incomplete format in exception's message.

Fixes: bug 1184870

Change-Id: I27f231c8c5cb41b1ec5fdb34fba6a8dff6a556c7
  • Loading branch information
Sergey Skripnick authored and zhiteng committed May 31, 2013
1 parent d1e7c9a commit d0c089f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cinder/exception.py
Expand Up @@ -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):
Expand Down
1 change: 0 additions & 1 deletion cinder/tests/test_db_api.py
Expand Up @@ -258,7 +258,6 @@ def test_volume_allocate_iscsi_target(self):
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')
Expand Down

0 comments on commit d0c089f

Please sign in to comment.