Just update the stored in-place
This commit is contained in:
parent
3a39ad8b1d
commit
02f452aa47
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user