diff options
author | David Ripton <dripton@redhat.com> | 2013-06-05 15:14:31 -0400 |
---|---|---|
committer | David Ripton <dripton@redhat.com> | 2013-06-11 09:13:03 -0400 |
commit | 7fadc012939faf063bbe9ad3a2f35067ce16a4b2 (patch) | |
tree | a0a45b35af7a0891cfe87dc06709239778e23ac6 /nova/utils.py | |
parent | 685228d96b7d40f537cf6144014234e24e8cd7fd (diff) | |
download | nova-7fadc012939faf063bbe9ad3a2f35067ce16a4b2.tar.gz nova-7fadc012939faf063bbe9ad3a2f35067ce16a4b2.tar.xz nova-7fadc012939faf063bbe9ad3a2f35067ce16a4b2.zip |
Use an inner join on aggregate_hosts in aggregate_get_by_host
Fixes bug 1187708
By default, sqlalchemy.orm.joinedload does a left outer join. But in
aggregate_get_by_host, we only want to get aggregates rows with
aggregate_hosts rows that match the host, and a left outer join also
gave us aggregates rows with no matching aggregate_hosts row.
Also improve test_aggregate_get_by_host to catch this bug.
Change-Id: Ida9647af02ab58229abe3c50dc3d2c7ec9792a5e
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions