Revision de8859f1 snf-astakos-app/astakos/im/endpoints/qh.py
b/snf-astakos-app/astakos/im/endpoints/qh.py | ||
---|---|---|
46 | 46 |
from kamaki.clients.quotaholder import QuotaholderClient |
47 | 47 |
|
48 | 48 |
ENTITY_KEY = '1' |
49 |
PRACTICALLY_INF = pow(2, 70) |
|
49 | 50 |
|
50 | 51 |
inf = float('inf') |
51 | 52 |
|
... | ... | |
134 | 135 |
key=ENTITY_KEY, |
135 | 136 |
quantity=0, |
136 | 137 |
capacity=uplimit if uplimit != inf else None, |
137 |
import_limit=0,
|
|
138 |
export_limit=0,
|
|
138 |
import_limit=PRACTICALLY_INF,
|
|
139 |
export_limit=PRACTICALLY_INF,
|
|
139 | 140 |
flags=0)) |
140 | 141 |
return set_quota(payload) |
141 | 142 |
|
... | ... | |
154 | 155 |
holder=resource.service, |
155 | 156 |
resource=resource, |
156 | 157 |
key=ENTITY_KEY, |
157 |
quantity=None,
|
|
158 |
capacity=None,
|
|
159 |
import_limit=None,
|
|
160 |
export_limit=None,
|
|
158 |
quantity=0,
|
|
159 |
capacity=0,
|
|
160 |
import_limit=PRACTICALLY_INF,
|
|
161 |
export_limit=PRACTICALLY_INF,
|
|
161 | 162 |
flags=0) for resource in resources) |
162 | 163 |
return set_quota(payload) |
163 | 164 |
|
Also available in: Unified diff