فهرست منبع

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

Michael Honkoop 4 ماه پیش
والد
کامیت
1a6e08997a
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      plugins/edirectory_monitor/server_side_calls/special_agent_edirectory_monitor.py

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

@@ -1,6 +1,6 @@
 #!/usr/bin/env python3
 
-from collections.abc import Iterable, Sequence
+from collections.abc import Iterator, Mapping, Sequence
 
 from pydantic import BaseModel
 
@@ -12,8 +12,8 @@ class Params(BaseModel):
     user: str
     password: Secret
 
-def commands_function(params: Params, host_config: HostConfig) -> Iterable[SpecialAgentCommand]:
-    command_arguments: list[str | Secret] = [
+def commands_function(params: Params, host_config: HostConfig) -> Iterator[SpecialAgentCommand]:
+    args: Sequence[str | Secret] = [
         params.ldap_uri,
         params.user,
         params.password.unsafe(),