]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/telemetry: fix issue with incompatible types
authorLaura Flores <lflores@redhat.com>
Mon, 2 Aug 2021 16:42:50 +0000 (16:42 +0000)
committerLaura Flores <lflores@redhat.com>
Mon, 2 Aug 2021 16:42:50 +0000 (16:42 +0000)
Signed-off-by: Laura Flores <lflores@redhat.com>
src/pybind/mgr/telemetry/module.py

index 44dc81e761640e3965b9551befb61f2cae2703ca..413ba6a6caa8f6c0a1674c47eeadd6b7c3740b90 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, dict] = defaultdict(lambda: defaultdict(int))
+            compiled_stats_dict: Dict[str, Any] = defaultdict(lambda: defaultdict())
 
             # Find out which pgs belong to the current pool and add up
             # their stats
@@ -391,7 +391,7 @@ class Module(MgrModule):
 
                             # This is the dict that contains information for an individual
                             # axis. It will be appended to the 'axes' list at the end.
-                            axis_dict: Dict[str, dict] = defaultdict(int)
+                            axis_dict: Dict[str, Any] = defaultdict()
 
                             # Collecting information for buckets, min, name, etc.
                             # TODO: In some cases, the user might change the size of