Explorar o código

Fixed endpoint list bug.

Fetching the endpoint list didn't work properly because the query was
filtered with Replica.project_id instead of Endpoint.project_id.
Nichita Herciu %!s(int64=9) %!d(string=hai) anos
pai
achega
eca9214d58
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      coriolis/db/api.py

+ 1 - 1
coriolis/db/api.py

@@ -62,7 +62,7 @@ def _soft_delete_aware_query(context, *args, **kwargs):
 def get_endpoints(context):
 def get_endpoints(context):
     q = _soft_delete_aware_query(context, models.Endpoint)
     q = _soft_delete_aware_query(context, models.Endpoint)
     return q.filter(
     return q.filter(
-        models.Replica.project_id == context.tenant).all()
+        models.Endpoint.project_id == context.tenant).all()
 
 
 
 
 @enginefacade.reader
 @enginefacade.reader