Commit dc9ade6a authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Set import/export limit to something big

parent d92e0412
...@@ -46,6 +46,7 @@ if QUOTAHOLDER_URL: ...@@ -46,6 +46,7 @@ if QUOTAHOLDER_URL:
from kamaki.clients.quotaholder import QuotaholderClient from kamaki.clients.quotaholder import QuotaholderClient
ENTITY_KEY = '1' ENTITY_KEY = '1'
PRACTICALLY_INF = pow(2, 70)
inf = float('inf') inf = float('inf')
...@@ -134,8 +135,8 @@ def register_users(users): ...@@ -134,8 +135,8 @@ def register_users(users):
key=ENTITY_KEY, key=ENTITY_KEY,
quantity=0, quantity=0,
capacity=uplimit if uplimit != inf else None, capacity=uplimit if uplimit != inf else None,
import_limit=0, import_limit=PRACTICALLY_INF,
export_limit=0, export_limit=PRACTICALLY_INF,
flags=0)) flags=0))
return set_quota(payload) return set_quota(payload)
...@@ -154,10 +155,10 @@ def register_resources(resources): ...@@ -154,10 +155,10 @@ def register_resources(resources):
holder=resource.service, holder=resource.service,
resource=resource, resource=resource,
key=ENTITY_KEY, key=ENTITY_KEY,
quantity=None, quantity=0,
capacity=None, capacity=0,
import_limit=None, import_limit=PRACTICALLY_INF,
export_limit=None, export_limit=PRACTICALLY_INF,
flags=0) for resource in resources) flags=0) for resource in resources)
return set_quota(payload) return set_quota(payload)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment