Revision 02de6286 snf-pithos-backend/pithos/backends/modular.py
b/snf-pithos-backend/pithos/backends/modular.py | ||
---|---|---|
301 | 301 |
meta.update({'name': account, 'count': count, 'bytes': bytes}) |
302 | 302 |
if self.using_external_quotaholder: |
303 | 303 |
external_quota = external_quota or {} |
304 |
meta['bytes'] = external_quota.get('currValue', 0)
|
|
304 |
meta['bytes'] = external_quota.get('usage', 0)
|
|
305 | 305 |
meta.update({'modified': modified}) |
306 | 306 |
return meta |
307 | 307 |
|
... | ... | |
359 | 359 |
policy = self._get_policy(node, is_account_policy=True) |
360 | 360 |
if self.using_external_quotaholder: |
361 | 361 |
external_quota = external_quota or {} |
362 |
policy['quota'] = external_quota.get('maxValue', 0)
|
|
362 |
policy['quota'] = external_quota.get('limit', 0)
|
|
363 | 363 |
return policy |
364 | 364 |
|
365 | 365 |
@backend_method |
Also available in: Unified diff