Commit b2563247 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

astakos: Return empty dict when no user quotas found

parent f45775e8
......@@ -92,7 +92,7 @@ def get_users_quotas_and_limits(users, resources=None, sources=None):
def get_user_quotas(user, resources=None, sources=None):
quotas = get_users_quotas([user], resources, sources)
return quotas[user.uuid]
return quotas.get(user.uuid, {})
def service_get_quotas(service, users=None):
......
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