Skip to content

Commit 9bb0de4

Browse files
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 <[email protected]>
1 parent 530a81a commit 9bb0de4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/cephadm/cephadm.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,6 @@ def _daemon_ls_subset(self) -> Dict[str, Dict[str, Any]]:
16331633
# not changed for any daemon, we assume our cached info is good.
16341634
daemons: Dict[str, Dict[str, Any]] = {}
16351635
data_dir = self.ctx.data_dir
1636-
seen_memusage = {} # type: Dict[str, int]
16371636
seen_memusage_cid_len, seen_memusage = parsed_container_mem_usage(self.ctx)
16381637
# we need a mapping from container names to ids. Later we will convert daemon
16391638
# names to container names to get daemons container id to see if it has changed
@@ -3446,8 +3445,6 @@ def list_daemons(
34463445
seen_digests = {} # type: Dict[str, List[str]]
34473446

34483447
# keep track of memory and cpu usage we've seen
3449-
seen_memusage = {} # type: Dict[str, int]
3450-
seen_cpuperc = {} # type: Dict[str, str]
34513448
seen_memusage_cid_len, seen_memusage = parsed_container_mem_usage(ctx)
34523449
seen_cpuperc_cid_len, seen_cpuperc = parsed_container_cpu_perc(ctx)
34533450

0 commit comments

Comments
 (0)