Comment 7 for bug 1756360

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

Reviewed: https://review.openstack.org/555812
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=cc457dfffad7c4980e6f36364bdf190c79cf23e1
Submitter: Zuul
Branch: master

commit cc457dfffad7c4980e6f36364bdf190c79cf23e1
Author: Tyler Blakeslee <email address hidden>
Date: Fri Mar 23 08:21:27 2018 -0600

    Add __repr__ for NovaException

    Due to change c1a7079c26d27a2e46cca26963d3d9aa040bdbe8 in
    oslo.serialization, serialized exceptions in errors no longer
    have kwargs. This change fixes the problem by adding __repr__
    to NovaException which will return a string representation
    of exception.__dict__. This string contains the exception message
    along with all the kwargs. Without __repr__, the serialization
    process for exceptions just returns the exception type and the
    default message, without the kwargs.

    Change-Id: I653282a030d03362dfca0fd1026cebe920d54e37
    Closes-Bug: #1756360