Parcourir la source

Update 'plugins/edirectory_monitor/server_side_calls/special_agent.py'

Michael Honkoop il y a 4 mois
Parent
commit
fd237bf4de

+ 4 - 4
plugins/edirectory_monitor/server_side_calls/special_agent.py

@@ -7,12 +7,12 @@ from pydantic import BaseModel
 from cmk.server_side_calls.v1 import HostConfig, SpecialAgentCommand, SpecialAgentConfig
 from cmk.server_side_calls.v1._utils import Secret
 
-class _Params(BaseModel):
+class Params(BaseModel):
     ldap_uri: str
     user: str
     password: Secret
 
-def _commands_function(params: _Params, host_config: HostConfig) -> Iterable[SpecialAgentCommand]:
+def commands_function(params: Params, host_config: HostConfig) -> Iterable[SpecialAgentCommand]:
     command_arguments: list[str | Secret] = [
         params.ldap_uri,
         params.user,
@@ -23,6 +23,6 @@ def _commands_function(params: _Params, host_config: HostConfig) -> Iterable[Spe
 
 special_agent_edirectory_monitor = SpecialAgentConfig(
     name="edirectory_monitor",
-    parameter_parser=_Params.model_validate,
-    commands_function=_commands_function,
+    parameter_parser=Params.model_validate,
+    commands_function=commands_function,
 )