From: John Mulligan Date: Thu, 30 Jan 2025 00:27:06 +0000 (-0500) Subject: cephadm: remove some lines that are now redundant X-Git-Tag: v20.0.0~245^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F61579%2Fhead;p=ceph.git 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 --- 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)