Just update the stored in-place

This commit is contained in:
Joshua Harlow 2016-05-13 18:06:57 -07:00
parent 3a39ad8b1d
commit 02f452aa47
1 changed files with 2 additions and 4 deletions

View File

@ -118,10 +118,8 @@ class ZookeeperQuotaEngine(engine.QuotaEngine):
"Unsupported kind '%s' encountered"
" for resource '%s' owned by '%s'"
% (kind, resource, for_who))
return {
'kind': kind,
'details': processor.process(stored['details'], amount),
}
stored['details'] = processor.process(stored['details'], amount)
return stored
def consume_many(self, for_who, resources, amounts):
who_path = paths.join(self.uri.path, for_who)