From 44510fd37211e91eba604b1e78b0cf86a7e015e1 Mon Sep 17 00:00:00 2001 From: Redouane Kachach Date: Tue, 15 Jul 2025 16:21:41 +0200 Subject: [PATCH] mgr/cephadm: moving service_discovery.py to services module Signed-off-by: Redouane Kachach --- src/pybind/mgr/cephadm/http_server.py | 2 +- src/pybind/mgr/cephadm/{ => services}/service_discovery.py | 0 src/pybind/mgr/cephadm/tests/test_service_discovery.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/pybind/mgr/cephadm/{ => services}/service_discovery.py (100%) diff --git a/src/pybind/mgr/cephadm/http_server.py b/src/pybind/mgr/cephadm/http_server.py index efeb54e8a24f2..baa00a3eb5ac8 100644 --- a/src/pybind/mgr/cephadm/http_server.py +++ b/src/pybind/mgr/cephadm/http_server.py @@ -4,7 +4,7 @@ import logging from typing import TYPE_CHECKING from cephadm.agent import AgentEndpoint -from cephadm.service_discovery import ServiceDiscovery +from cephadm.services.service_discovery import ServiceDiscovery from mgr_util import test_port_allocation, PortAlreadyInUse from orchestrator import OrchestratorError diff --git a/src/pybind/mgr/cephadm/service_discovery.py b/src/pybind/mgr/cephadm/services/service_discovery.py similarity index 100% rename from src/pybind/mgr/cephadm/service_discovery.py rename to src/pybind/mgr/cephadm/services/service_discovery.py diff --git a/src/pybind/mgr/cephadm/tests/test_service_discovery.py b/src/pybind/mgr/cephadm/tests/test_service_discovery.py index fd0eaff35b9a1..32e20256626da 100644 --- a/src/pybind/mgr/cephadm/tests/test_service_discovery.py +++ b/src/pybind/mgr/cephadm/tests/test_service_discovery.py @@ -1,5 +1,5 @@ from unittest.mock import MagicMock -from cephadm.service_discovery import Root +from cephadm.services.service_discovery import Root from cephadm.services.service_registry import service_registry -- 2.39.5