From 449efec8f6a27323d5e1a232c371793ab4a2b256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuncay=20=C3=87OLAK?= Date: Tue, 24 Sep 2019 14:45:50 +0300 Subject: [PATCH] bugfix: get display number --- src/base/util/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/base/util/util.py b/src/base/util/util.py index 63582a9..69210f0 100644 --- a/src/base/util/util.py +++ b/src/base/util/util.py @@ -406,7 +406,7 @@ class Util: @staticmethod def get_username_display(): - result_code, p_out, p_err = Util.execute("who | awk '{print $1, $5}' | sed 's/(//' | sed 's/)//'", result=True) + result_code, p_out, p_err = Util.execute("who | awk '{print $1, $5}' | sed 's/(://' | sed 's/)//'", result=True) result = [] lines = str(p_out).split('\n') @@ -417,5 +417,6 @@ class Util: params = str(result[0]).split(' ') display_number = params[1] + display_number = ":"+str(display_number) return display_number