|
@@ -1,6 +1,6 @@
|
|
#!/usr/bin/env python3
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
-from collections.abc import Iterable, Sequence
|
|
|
|
|
|
+from collections.abc import Iterator, Mapping, Sequence
|
|
|
|
|
|
from pydantic import BaseModel
|
|
from pydantic import BaseModel
|
|
|
|
|
|
@@ -12,8 +12,8 @@ class Params(BaseModel):
|
|
user: str
|
|
user: str
|
|
password: Secret
|
|
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.ldap_uri,
|
|
params.user,
|
|
params.user,
|
|
params.password.unsafe(),
|
|
params.password.unsafe(),
|