From bc838eda591473d32b11a885e60ef653925739d0 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Sun, 1 Mar 2020 17:38:51 -0800 Subject: [PATCH] fix output for non-extended --- jc/parsers/who.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/jc/parsers/who.py b/jc/parsers/who.py index 69cf5ad9..b81558d6 100644 --- a/jc/parsers/who.py +++ b/jc/parsers/who.py @@ -19,7 +19,7 @@ Examples: }, { "user": "joeuser", - "writeable_tty": "?", + "writeable_tty": "-", "tty": "console", "time": "Feb 7 23:32", "idle": "old", @@ -36,7 +36,7 @@ Examples: }, { "user": "joeuser", - "writeable_tty": "+", + "writeable_tty": "?", "tty": "ttys003", "time": "Feb 28 08:59", "idle": "01:36", @@ -62,7 +62,7 @@ Examples: }, { "user": "joeuser", - "writeable_tty": "?", + "writeable_tty": "-", "tty": "console", "time": "Feb 7 23:32", "idle": "old", @@ -79,7 +79,7 @@ Examples: }, { "user": "joeuser", - "writeable_tty": "+", + "writeable_tty": "?", "tty": "ttys003", "time": "Feb 28 08:59", "idle": "01:36", @@ -246,6 +246,7 @@ def parse(data, raw=False, quiet=False): # if just one more field, then it's the remote IP if len(linedata) == 1: output_line['from'] = linedata[0].replace('(', '').replace(')', '') + raw_output.append(output_line) continue # extended info: idle