Skip to content

Commit

Permalink
[maas] collect only recent journal by default
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Troyanov <[email protected]>
  • Loading branch information
troyanov committed Jun 27, 2024
1 parent 3a8b30b commit 5f7fd01
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sos/report/plugins/maas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5f7fd01

Please sign in to comment.