summaryrefslogtreecommitdiff
path: root/zuul/zk
diff options
context:
space:
mode:
authorSimon Westphahl <simon.westphahl@bmw.de>2022-03-15 11:13:43 +0100
committerSimon Westphahl <simon.westphahl@bmw.de>2022-03-15 11:14:44 +0100
commit586516d8fad224c5fd5a62f496f86ae424b62afd (patch)
tree89833b0853ff4b18e9cd44e657a88ed2a163dbbe /zuul/zk
parent09125484861e2e368596682088957c7585bd5a3b (diff)
downloadzuul-586516d8fad224c5fd5a62f496f86ae424b62afd.tar.gz
Fix ZKObject compressed data size estimate
The `walk()` method used a wrong variable name for the compressed data size. Because of that the compressed size was always returned as 0 for nested ZKObjects leading to a wrong total. Change-Id: I2081f1100fe1733b9c1c161d3a65086359bd81e8
Diffstat (limited to 'zuul/zk')
-rw-r--r--zuul/zk/zkobject.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/zuul/zk/zkobject.py b/zuul/zk/zkobject.py
index 215f44291..e7fc33d95 100644
--- a/zuul/zk/zkobject.py
+++ b/zuul/zk/zkobject.py
@@ -211,7 +211,7 @@ class ZKObject:
if obj in seen:
return 0, 0
seen.add(obj)
- compress, uncompressed = obj.estimateDataSize(seen)
+ compressed, uncompressed = obj.estimateDataSize(seen)
elif (isinstance(obj, dict) or
isinstance(obj, types.MappingProxyType)):
for sub in obj.values():