Commit 98f8491e authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Move resource if > 0

parent 150e0f31
......@@ -340,8 +340,10 @@ class QuotaholderDjangoDBCallpoint(Callpoint):
continue
q = self._actual_quantity(h)
owner = h.entity.owner
self._increase_resource(owner, resource, q)
if q > 0:
owner = h.entity.owner
self._increase_resource(owner, resource, q)
h.delete()
return rejected
......
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