Revision e407f159 snf-cyclades-app/synnefo/quotas/util.py
b/snf-cyclades-app/synnefo/quotas/util.py | ||
---|---|---|
34 | 34 |
from django.db.models import Sum, Count, Q |
35 | 35 |
|
36 | 36 |
from synnefo.db.models import VirtualMachine, Network, FloatingIP |
37 |
from synnefo.quotas import Quotaholder, ASTAKOS_TOKEN
|
|
37 |
from synnefo.quotas import Quotaholder |
|
38 | 38 |
|
39 | 39 |
|
40 | 40 |
def get_db_holdings(user=None): |
... | ... | |
99 | 99 |
Returns quotas for all users, unless a single user is specified. |
100 | 100 |
""" |
101 | 101 |
qh = Quotaholder.get() |
102 |
return qh.service_get_quotas(ASTAKOS_TOKEN, user)
|
|
102 |
return qh.service_get_quotas(user) |
|
103 | 103 |
|
104 | 104 |
|
105 | 105 |
def transform_quotas(quotas): |
Also available in: Unified diff