From 5f7fd011d648d5a954aef7727e92d6ddd63f07b4 Mon Sep 17 00:00:00 2001 From: Anton Troyanov Date: Thu, 27 Jun 2024 15:13:25 +0400 Subject: [PATCH] [maas] collect only recent journal by default Signed-off-by: Anton Troyanov --- sos/report/plugins/maas.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sos/report/plugins/maas.py b/sos/report/plugins/maas.py index 1114f8d82d..f8447981b1 100644 --- a/sos/report/plugins/maas.py +++ b/sos/report/plugins/maas.py @@ -165,6 +165,13 @@ def _deb_collect(self): ) def setup(self): + if self.get_option('all_logs') is None: + if not self.get_option("since"): + self.set_option( + 'since', + "-1days" + ) + if self._is_snap_installed(): self._snap_collect() else: