Commit 3bd601a9 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

astakos: Handle source correctly in initial_quotas

parent 01b9c358
......@@ -149,8 +149,10 @@ def initial_quotas(users):
for user_quota in orig_quotas:
uuid = user_quota.user.uuid
user_init = initial.get(uuid, {})
source_quota = user_init.get(SYSTEM, {})
resource = user_quota.resource.full_name()
user_init[resource] = user_quota.capacity
source_quota[resource] = user_quota.capacity
user_init[SYSTEM] = source_quota
initial[uuid] = user_init
return initial
......
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