From 560409a940b67d8d1dc4a86efc01ad0bd8bd8bbb Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Sun, 5 Nov 2023 13:43:44 -0500 Subject: [PATCH] cephadm: switch snmp class to use daemon_to_container function Switch the snmp daemon type class to call daemon_to_container instead of get_container in the class's container method. This breaks a dependency loop between the class and the get_container function hopefully enabling future clean ups and code moves. Signed-off-by: John Mulligan --- src/cephadm/cephadm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index fb39a9eb03aa..1cde594be101 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -600,7 +600,7 @@ class SNMPGateway(ContainerDaemonForm): raise Error('config is missing destination attribute(:) of the target SNMP listener') def container(self, ctx: CephadmContext) -> CephContainer: - ctr = get_container(ctx, self.identity) + ctr = daemon_to_container(ctx, self) return to_deployment_container(ctx, ctr) def uid_gid(self, ctx: CephadmContext) -> Tuple[int, int]: -- 2.47.3