mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 05:09:12 +00:00
[PR #11445/f9334656 backport][stable-12] Cleanup (#11446)
Cleanup (#11445)
* Correctly position BOTMETA entry.
* Standardize to 'import typing as t'.
* Remove platform attribute.
(cherry picked from commit f933465658)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
1670f8693a
commit
ccdf82f163
3 changed files with 10 additions and 14 deletions
|
|
@ -14,15 +14,12 @@ description:
|
|||
author: "Aleksandr Gabidullin (@a-gabidullin)"
|
||||
requirements:
|
||||
- dbus
|
||||
- SSSD needs to be running
|
||||
attributes:
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
platform:
|
||||
platforms: posix
|
||||
description: This action requires a system with D-Bus and SSSD running.
|
||||
support: full
|
||||
options:
|
||||
action:
|
||||
description:
|
||||
|
|
@ -104,7 +101,7 @@ list_servers:
|
|||
"""
|
||||
|
||||
|
||||
from typing import Any
|
||||
import typing as t
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
|
|
@ -218,7 +215,7 @@ def main() -> None:
|
|||
server_type = module.params.get("server_type")
|
||||
|
||||
sssd = SSSDHandler()
|
||||
result: dict[str, Any] = {}
|
||||
result: dict[str, t.Any] = {}
|
||||
|
||||
try:
|
||||
if action == "domain_status":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue