** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => kilo-2

-- 
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/1365887

Title:
  Metadata filtering is broken

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  When I make this change

  http://paste.openstack.org/show/106339/

  to unit tests, the test fails. key3=a key-value pair is matched, but
  it shouldn't be.

  Also, there is no test case for different values of filter, except
  empty filter.

  The problem is , the def _match_any() is not checking if pattern_list
  is actually a list, or just a string.

  The solution will be to add a condition "pattern_list = [pattern_list]
  if isinstance(pattern_list, str)"

  Unit tests also must be added

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1365887/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to