From 9bb0de4d99fe12f967ef041a9cf0fca9e123f107 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Wed, 29 Jan 2025 19:27:06 -0500 Subject: [PATCH] cephadm: remove some lines that are now redundant The previous set of patches replaced some function calls and now there are unnecessary lines present. Remove them. Signed-off-by: John Mulligan --- src/cephadm/cephadm.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index 39262f44c602..4be352bfae08 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -1633,7 +1633,6 @@ class CephadmAgent(DaemonForm): # not changed for any daemon, we assume our cached info is good. daemons: Dict[str, Dict[str, Any]] = {} data_dir = self.ctx.data_dir - seen_memusage = {} # type: Dict[str, int] seen_memusage_cid_len, seen_memusage = parsed_container_mem_usage(self.ctx) # we need a mapping from container names to ids. Later we will convert daemon # names to container names to get daemons container id to see if it has changed @@ -3446,8 +3445,6 @@ def list_daemons( seen_digests = {} # type: Dict[str, List[str]] # keep track of memory and cpu usage we've seen - seen_memusage = {} # type: Dict[str, int] - seen_cpuperc = {} # type: Dict[str, str] seen_memusage_cid_len, seen_memusage = parsed_container_mem_usage(ctx) seen_cpuperc_cid_len, seen_cpuperc = parsed_container_cpu_perc(ctx) -- 2.47.3