yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #47644
[Bug 1554617] [NEW] Tests for aggregates use getattr() improperly
Public bug reported:
Because objects do not raise AttributeError if an attribute is not set,
the default functionality of getattr() cannot be used with objects.
Instead, an 'in' check needs to be used on the object, and if that
passes, I can use getattr(). If that fails, I need to give the default.
** Affects: nova
Importance: Undecided
Assignee: Ryan Rossiter (rlrossit)
Status: In Progress
--
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/1554617
Title:
Tests for aggregates use getattr() improperly
Status in OpenStack Compute (nova):
In Progress
Bug description:
Because objects do not raise AttributeError if an attribute is not
set, the default functionality of getattr() cannot be used with
objects. Instead, an 'in' check needs to be used on the object, and if
that passes, I can use getattr(). If that fails, I need to give the
default.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1554617/+subscriptions
Follow ups