1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-02-04 07:51:50 +00:00

fix module sanity test

This commit is contained in:
Александр Габидуллин 2026-01-29 17:19:28 +04:00
parent 14d1c88d31
commit 64bb002f77

View file

@ -864,8 +864,8 @@ def main() -> None:
module = AnsibleModule(
argument_spec=dict(
name=dict(type="str", required=True, aliases=["config_name"]),
state=dict(type="str", default="present", choices=["present", "absent"]),
config_dir=dict(type="path", default="/etc/logrotate.d"),
state=dict(type="str", choices=["present", "absent"]),
config_dir=dict(type="path"),
paths=dict(type="list", elements="path"),
rotation_period=dict(
type="str",
@ -920,6 +920,7 @@ def main() -> None:
)
logrotate_bin = module.get_bin_path("logrotate", required=True)
logrotate_config = LogrotateConfig(module, logrotate_bin)
result = logrotate_config.apply()
module.exit_json(**result)