Revision 32e4e343 snf-cyclades-app/synnefo/quotas/util.py
b/snf-cyclades-app/synnefo/quotas/util.py | ||
---|---|---|
57 | 57 |
disk=Sum("flavor__disk")) |
58 | 58 |
vm_active_resources = \ |
59 | 59 |
vms.values("userid")\ |
60 |
.filter(Q(operstate="STARTED") | Q(operstate="BUILD") |\
|
|
60 |
.filter(Q(operstate="STARTED") | Q(operstate="BUILD") | |
|
61 | 61 |
Q(operstate="ERROR"))\ |
62 | 62 |
.annotate(active_ram=Sum("flavor__ram"), |
63 | 63 |
active_cpu=Sum("flavor__cpu")) |
Also available in: Unified diff