yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #11876
[Bug 1154522] Re: NovaException's message variable should be private
https://github.com/openstack/nova/commit/70569ae344bceb3794713abc5cb2c82e9671c37d
fixed this by renaming NovaException's message attribute as msg_fmt
which make it clear that this isn't the message but rather a format
string used to construct the message.
** Changed in: nova
Status: In Progress => Invalid
** Changed in: nova
Assignee: Hans Lindgren (hanlind) => (unassigned)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1154522
Title:
NovaException's message variable should be private
Status in OpenStack Compute (Nova):
Invalid
Bug description:
Different exceptions define message as a parameterized string that
cannot be used directly. The complete message with variables replaced
with their real values are only available through the use of str() or
unicode() on the exception class itself.
As such, NovaException's message variable should be renamed _message
to indicate that it is private.
See bug 1154117 for an example of this.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1154522/+subscriptions