]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
CinderException args to strings when exceptions
authorgit-harry <git-harry@live.co.uk>
Thu, 17 Apr 2014 09:49:49 +0000 (10:49 +0100)
committergit-harry <git-harry@live.co.uk>
Tue, 29 Apr 2014 11:36:57 +0000 (12:36 +0100)
commit31a09451394458273ae1ed9af867476da4ece9d6
treed4457d8551e49a73c9340c8cd0078bcef3c50b1f
parenta221a30b32aa94077f352719b2637b51c1809069
CinderException args to strings when exceptions

CinderException message and kwargs are converted to strings if the
argument is itself an exception.

Exceptions passed as arguments to CinderException happen in many areas
of the code. This causes an error when oslo.messaging tries to serialise
the exception.

Change-Id: I1399c939bbca47ab8362ac3bbe0e9a349c6d5572
Closes-Bug: #1301249
cinder/exception.py
cinder/tests/test_exception.py