]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix exception message formatting
authorEduardo Costa <eduardo.costa@tvglobo.com.br>
Sun, 2 Nov 2014 15:06:12 +0000 (16:06 +0100)
committerEduardo Costa <eduardo.costa@tvglobo.com.br>
Mon, 24 Nov 2014 14:39:00 +0000 (12:39 -0200)
commit9cd907a8377a4c112ce46755ab68b384ceac75c7
tree0a8c31390af744143215385e4725b2f2797880ed
parent0fb250bff8ac278a27979815aa1c4885f4f37af4
Fix exception message formatting

If the exception class made a reference to the "message" field in
its format string, it would be overriden with the value of the
"message" argument itself. It is now possible to use the "message"
field and preserve the desired message formatting. Test cases
provided.

Change-Id: I5705203466535fa242d13e43571012e5bf72712a
Closes-Bug: #1288066
cinder/exception.py
cinder/tests/test_exception.py