Explorar o código

Merged in nherciu/coriolis/endplist (pull request #47)

Fixed endpoint list bug.
nherciu %!s(int64=9) %!d(string=hai) anos
pai
achega
14cc8bc6db
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):
     q = _soft_delete_aware_query(context, models.Endpoint)
     return q.filter(
-        models.Replica.project_id == context.tenant).all()
+        models.Endpoint.project_id == context.tenant).all()
 
 
 @enginefacade.reader