From c1d896027dd1ce021e048b3e77eab24ff59d08bd Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Thu, 27 Feb 2020 15:58:12 -0800 Subject: [PATCH] fix system_boot tty --- jc/parsers/last.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jc/parsers/last.py b/jc/parsers/last.py index 6b2c2504..7ffb77fc 100644 --- a/jc/parsers/last.py +++ b/jc/parsers/last.py @@ -116,6 +116,9 @@ def process(proc_data): if 'tty' in entry and entry['tty'] == '~': entry['tty'] = None + if 'tty' in entry and entry['tty'] == 'system_boot': + entry['tty'] = 'system boot' + if 'hostname' in entry and entry['hostname'] == '-': entry['hostname'] = None