Reviewed: https://review.openstack.org/37069 Committed: http://github.com/openstack/nova/commit/7e8fa8f3e6acac0e510cd1fc5af591f9a321d03a Submitter: Jenkins Branch: master
commit 7e8fa8f3e6acac0e510cd1fc5af591f9a321d03a Author: Kieran Spear <email address hidden> Date: Mon Jul 15 22:00:19 2013 +1000
Fix filtering aggregate metadata by key
Filtering by metadata key has no effect in the following two functions:
aggregate_metadata_get_by_host aggregate_host_get_by_metadata_key
Rely on the explicit join instead of joinedload to load the _metadata relationship in these functions (indicated by the contains_eager option), so that filtering by key still applies when the metadata is collected.
Fixes bug 1201283.
Change-Id: I3e44b5db8d67787bfa14f0e57d30a02a271a8833
Reviewed: https:/ /review. openstack. org/37069 github. com/openstack/ nova/commit/ 7e8fa8f3e6acac0 e510cd1fc5af591 f9a321d03a
Committed: http://
Submitter: Jenkins
Branch: master
commit 7e8fa8f3e6acac0 e510cd1fc5af591 f9a321d03a
Author: Kieran Spear <email address hidden>
Date: Mon Jul 15 22:00:19 2013 +1000
Fix filtering aggregate metadata by key
Filtering by metadata key has no effect in the following two functions:
Rely on the explicit join instead of joinedload to load the _metadata
relationship in these functions (indicated by the contains_eager
option), so that filtering by key still applies when the metadata is
collected.
Fixes bug 1201283.
Change-Id: I3e44b5db8d6778 7bfa14f0e57d30a 02a271a8833