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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to