From 568f47001f45b489a20722050f0f01bd24ae14b7 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Tue, 30 Jan 2024 14:39:16 -0500 Subject: [PATCH] pybind/mgr: stub in a new smb mgr module Currently, this module does nothing but serve as a placeholder for the future smb manager module. Signed-off-by: John Mulligan --- src/pybind/mgr/CMakeLists.txt | 1 + src/pybind/mgr/smb/__init__.py | 9 +++++++++ src/pybind/mgr/smb/module.py | 19 +++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 src/pybind/mgr/smb/__init__.py create mode 100644 src/pybind/mgr/smb/module.py diff --git a/src/pybind/mgr/CMakeLists.txt b/src/pybind/mgr/CMakeLists.txt index e8c06c9e2e9e8..0b706c74edb23 100644 --- a/src/pybind/mgr/CMakeLists.txt +++ b/src/pybind/mgr/CMakeLists.txt @@ -46,6 +46,7 @@ set(mgr_modules rgw # rook (optional) selftest + smb snap_schedule stats status diff --git a/src/pybind/mgr/smb/__init__.py b/src/pybind/mgr/smb/__init__.py new file mode 100644 index 0000000000000..b99793bc77478 --- /dev/null +++ b/src/pybind/mgr/smb/__init__.py @@ -0,0 +1,9 @@ +# enable unit test automagical mocks +import os + +if 'UNITTEST' in os.environ: + import tests # noqa: F401 + +from .module import Module + +__all__ = ['Module'] diff --git a/src/pybind/mgr/smb/module.py b/src/pybind/mgr/smb/module.py new file mode 100644 index 0000000000000..d0a19d9ae0313 --- /dev/null +++ b/src/pybind/mgr/smb/module.py @@ -0,0 +1,19 @@ +import logging + +from typing import Any, List + +from mgr_module import MgrModule, Option + +import orchestrator + + + +log = logging.getLogger(__name__) + + +class Module(orchestrator.OrchestratorClientMixin, MgrModule): + MODULE_OPTIONS: List[Option] = [] + + def __init__(self, *args: str, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + log.info('hello smb') -- 2.39.5