Merge "remove DISTINCT ON SQL instruction that does nothing on MySQL"

This commit is contained in:
Zuul 2020-03-25 23:18:58 +00:00 committed by Gerrit Code Review
commit df49ad9b29
1 changed files with 1 additions and 1 deletions

View File

@ -484,7 +484,7 @@ def service_get_all_computes_by_hv_type(context, hv_type,
query = query.join(models.ComputeNode,
models.Service.host == models.ComputeNode.host).\
filter(models.ComputeNode.hypervisor_type == hv_type).\
distinct('host')
distinct()
return query.all()