瀏覽代碼

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

Michael Honkoop 4 月之前
父節點
當前提交
c6bdcb981b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      plugins/edirectory_monitor/server_side_calls/special_agent_edirectory_monitor.py

+ 2 - 2
plugins/edirectory_monitor/server_side_calls/special_agent_edirectory_monitor.py

@@ -12,7 +12,7 @@ class Params(BaseModel):
     user: str
     password: Secret
 
-def _commands_function(params: Params, host_config: HostConfig) -> Iterator[SpecialAgentCommand]:
+def commands_function(params: Params, host_config: HostConfig) -> Iterator[SpecialAgentCommand]:
     command_arguments: Sequence[str | Secret] = [
         params.ldap_uri,
         params.user,
@@ -24,5 +24,5 @@ def _commands_function(params: Params, host_config: HostConfig) -> Iterator[Spec
 special_agent_edirectory_monitor = SpecialAgentConfig(
     name="edirectory_monitor",
     parameter_parser=Params.model_validate,
-    commands_function=_commands_function,
+    commands_function=commands_function,
 )