From: Frank Brehm Date: Tue, 7 Nov 2023 14:00:19 +0000 (+0100) Subject: Checking for remaining log files. X-Git-Tag: 3.2.1~28^2~3 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=2a4055317437c45be68b22e1692fe863d016c22d;p=pixelpark%2Fcreate-vmware-tpl.git Checking for remaining log files. --- diff --git a/lib/cr_vmware_tpl/handler/vm.py b/lib/cr_vmware_tpl/handler/vm.py index 62f88f4..831ceb8 100644 --- a/lib/cr_vmware_tpl/handler/vm.py +++ b/lib/cr_vmware_tpl/handler/vm.py @@ -26,7 +26,7 @@ from fb_tools.errors import HandlerError, ExpectedHandlerError from .. import print_section_start, print_section_end from ..xlate import XLATOR -__version__ = '0.2.3' +__version__ = '0.2.4' LOG = logging.getLogger(__name__) @@ -343,6 +343,16 @@ class HandlerVmMixin(): fi done + echo + echo "-----------------------------------------------------------" + echo "Clearing journal log ..." + journalctl --rotate --vacuum-time=2s + + echo + echo "-----------------------------------------------------------" + echo "Remaining files in /var/log:" + find /var/log -type f | xargs ls -l -S + echo echo "-----------------------------------------------------------" echo "Current network configuration:"