Now when rpc client rebuild exception at the middleware,
the process will always fail because we have duplicate
keyword 'message' there. Considering we already have a bunch
of exceptions who need format key 'message' as below:
```
class VolumeDriverException(CinderException):
message = _("Volume driver reported an error: %(message)s")
```
Instead of refactor all of them, this patch just removes
the kwargs 'message' when exception is initialized.
Reviewed: https:/ /review. openstack. org/572674 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=c25a1485f29 76bec871e804cb5 aacd3fe095b05e
Committed: https:/
Submitter: Zuul
Branch: master
commit c25a1485f2976be c871e804cb5aacd 3fe095b05e
Author: TommyLike <email address hidden>
Date: Wed Jun 6 13:36:12 2018 +0800
Remove kwargs 'message' when exception is created
Now when rpc client rebuild exception at the middleware,
the process will always fail because we have duplicate
keyword 'message' there. Considering we already have a bunch
of exceptions who need format key 'message' as below:
``` eption( CinderException ):
class VolumeDriverExc
message = _("Volume driver reported an error: %(message)s")
```
Instead of refactor all of them, this patch just removes
the kwargs 'message' when exception is initialized.
Closes-Bug: #1728826
Change-Id: I6bfa34a42df1f4 4e16b7536246def 610821b7cba