From: Laura Flores Date: Mon, 2 Aug 2021 16:42:50 +0000 (+0000) Subject: mgr/telemetry: fix issue with incompatible types X-Git-Tag: v17.1.0~1008^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1071beb836fe1d2550142ec9d135c059fe417200;p=ceph.git mgr/telemetry: fix issue with incompatible types Signed-off-by: Laura Flores --- diff --git a/src/pybind/mgr/telemetry/module.py b/src/pybind/mgr/telemetry/module.py index 44dc81e76164..413ba6a6caa8 100644 --- a/src/pybind/mgr/telemetry/module.py +++ b/src/pybind/mgr/telemetry/module.py @@ -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