From 14d1c88d316598edcecc6d796b554a8168347936 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=93=D0=B0=D0=B1=D0=B8=D0=B4=D1=83=D0=BB=D0=BB=D0=B8=D0=BD?= Date: Thu, 29 Jan 2026 17:06:02 +0400 Subject: [PATCH] andebox yaml-doc --fix-offenders --- plugins/modules/logrotate.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/modules/logrotate.py b/plugins/modules/logrotate.py index f084e527b0..d376628ff7 100644 --- a/plugins/modules/logrotate.py +++ b/plugins/modules/logrotate.py @@ -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: