]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
try two
authorTomer Haskalovitch <tomer.haska@ibm.com>
Sun, 23 Nov 2025 07:46:30 +0000 (09:46 +0200)
committerTomer Haskalovitch <tomer.haska@ibm.com>
Sun, 23 Nov 2025 07:46:30 +0000 (09:46 +0200)
src/pybind/mgr/nvmeof/__init__.py [new file with mode: 0644]
src/pybind/mgr/nvmeof/module.py [new file with mode: 0644]

diff --git a/src/pybind/mgr/nvmeof/__init__.py b/src/pybind/mgr/nvmeof/__init__.py
new file mode 100644 (file)
index 0000000..33b8e63
--- /dev/null
@@ -0,0 +1,2 @@
+# flake8: noqa
+from .module import NVMeoF
diff --git a/src/pybind/mgr/nvmeof/module.py b/src/pybind/mgr/nvmeof/module.py
new file mode 100644 (file)
index 0000000..354cee3
--- /dev/null
@@ -0,0 +1,9 @@
+from mgr_module import CLIReadCommand, HandleCommandResult, MgrModule, Option
+from threading import Event
+from typing import cast, Any, Optional, TYPE_CHECKING
+import errno
+
+class NVMeoF(MgrModule):
+    @CLIReadCommand('ping')
+    def hello(self) -> HandleCommandResult:
+        return HandleCommandResult(stdout=f'pong')
\ No newline at end of file