]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/telemetry: fix issue with ctest 23 - run-rbd-unit-tests-109.sh
authorLaura Flores <lflores@redhat.com>
Mon, 2 Aug 2021 21:18:50 +0000 (21:18 +0000)
committerLaura Flores <lflores@redhat.com>
Mon, 2 Aug 2021 21:18:50 +0000 (21:18 +0000)
Signed-off-by: Laura Flores <lflores@redhat.com>
src/pybind/mgr/telemetry/module.py

index 413ba6a6caa8f6c0a1674c47eeadd6b7c3740b90..b88adfee0d1c71c2e40a237b8273cf2e6d000b67 100644 (file)
@@ -334,7 +334,7 @@ class Module(MgrModule):
             curr_pool_id, curr_pool_name = curr_pool[0], curr_pool[1]
 
             # Initialize a dict that will hold aggregated stats for the current pool
-            compiled_stats_dict: Dict[str, Any] = defaultdict(lambda: defaultdict())
+            compiled_stats_dict: Dict[str, Any] = defaultdict(lambda: defaultdict(int))
 
             # Find out which pgs belong to the current pool and add up
             # their stats