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

andebox yaml-doc --fix-offenders

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

View file

@ -51,8 +51,8 @@ options:
rotation_period:
description:
- How often to rotate the logs.
- If not specified, existing value will be preserved when modifying configuration.
- When creating new configuration, logrotate default (daily) will be used if not specified.
- If not specified, existing value be preserved when modifying configuration.
- When creating new configuration, logrotate default (daily) be used if not specified.
type: str
choices: [daily, weekly, monthly, yearly]
rotate_count:
@ -641,7 +641,7 @@ class LogrotateConfig:
if delaycompress_val is not None:
if delaycompress_val:
lines.append(" delaycompress")
nodelaycompress_val = self.params.get("nodelaycompress")
if nodelaycompress_val is not None:
if nodelaycompress_val:
@ -663,7 +663,7 @@ class LogrotateConfig:
ifempty_val = self.params.get("ifempty")
notifempty_val = self.params.get("notifempty")
if ifempty_val is not None and ifempty_val:
lines.append(" ifempty")
elif notifempty_val is not None and notifempty_val:
@ -676,7 +676,7 @@ class LogrotateConfig:
copy_val = self.params.get("copy")
renamecopy_val = self.params.get("renamecopy")
copytruncate_val = self.params.get("copytruncate")
if copy_val is not None and copy_val:
lines.append(" copy")
elif renamecopy_val is not None and renamecopy_val:
@ -706,7 +706,7 @@ class LogrotateConfig:
noolddir_val = self.params.get("noolddir")
olddir_val = self.params.get("olddir")
if noolddir_val is not None and noolddir_val:
lines.append(" noolddir")
elif olddir_val is not None: