summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorChris Behrens <cbehrens@codestud.com>2013-01-14 02:06:39 +0000
committerChris Behrens <cbehrens@codestud.com>2013-01-14 18:28:37 +0000
commit7e7bcc4f080c824c94c41485e29e365473661fa3 (patch)
tree40659e8a41af38e7304234f5a03b7639a2a04226 /nova/exception.py
parentca4b1303804e94f10f0e4e6c4a9e09c049efd1ee (diff)
downloadnova-7e7bcc4f080c824c94c41485e29e365473661fa3.tar.gz
nova-7e7bcc4f080c824c94c41485e29e365473661fa3.tar.xz
nova-7e7bcc4f080c824c94c41485e29e365473661fa3.zip
Fix uses of service_get_all_compute_by_host
There should never be more than 1 service entry for the same topic and host, however this method returns a list of services. All callers of this method except for 1 already account for there being only 1 service entry for a particular 'compute' host and only use the first entry in the return list. This patch renames the DB API call to be 'service_get_by_compute_host' and returns a single entry. All uses of the old method are adjusted accordingly. Change-Id: I0e0ef62f5d2e71efe756940d9fdd98aa02fef216
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions