Merge "remove DISTINCT ON SQL instruction that does nothing on MySQL"
This commit is contained in:
commit
df49ad9b29
@ -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()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user