Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 355e023

Browse files
committed
Return representive state data for module cephx_auth_config
Signed-off-by: Tobias Wolf <[email protected]>
1 parent d89d12c commit 355e023

File tree

1 file changed

+7
-1
lines changed
  • src/rookify/modules/cephx_auth_config

1 file changed

+7
-1
lines changed

src/rookify/modules/cephx_auth_config/main.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
from typing import Any
3+
from typing import Any, Dict
44
from ..exception import ModuleException
55
from ..machine import Machine
66
from ..module import ModuleHandler
@@ -30,6 +30,12 @@ def preflight(self) -> Any:
3030
def is_cephx_set(self, values: str) -> Any:
3131
return "cephx" in [value.strip() for value in values.split(",")]
3232

33+
def get_readable_key_value_state(self) -> Dict[str, str]:
34+
is_verified = self.machine.get_preflight_state_data(
35+
"CephXAuthHandler", "verified", default_value=False
36+
)
37+
return {"cephx auth is verified": str(is_verified)}
38+
3339
@staticmethod
3440
def register_preflight_state(
3541
machine: Machine, state_name: str, handler: ModuleHandler, **kwargs: Any

0 commit comments

Comments
 (0)