Преглед изворни кода

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

Fixed endpoint list bug.
nherciu пре 9 година
родитељ
комит
14cc8bc6db
1 измењених фајлова са 1 додато и 1 уклоњено
  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