Comment 9 for bug 1728826

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

Reviewed: https://review.openstack.org/592699
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=2ecaad46a737c24965ae81fc19947db9264de684
Submitter: Zuul
Branch: stable/queens

commit 2ecaad46a737c24965ae81fc19947db9264de684
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
    (cherry picked from commit c25a1485f2976bec871e804cb5aacd3fe095b05e)