Comment 5 for bug 1728826

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/572674
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=c25a1485f2976bec871e804cb5aacd3fe095b05e
Submitter: Zuul
Branch: master

commit c25a1485f2976bec871e804cb5aacd3fe095b05e
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:

    ```
    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.

    Closes-Bug: #1728826

    Change-Id: I6bfa34a42df1f44e16b7536246def610821b7cba