From f2373edd8e3ba0d96c5cf72b73031661ab223b5d Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sun, 17 Nov 2019 14:54:49 -0700 Subject: [PATCH] Address issue #96 --- .bin/Scripts/functions/osticket.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.bin/Scripts/functions/osticket.py b/.bin/Scripts/functions/osticket.py index 3c2981be..c2301c37 100644 --- a/.bin/Scripts/functions/osticket.py +++ b/.bin/Scripts/functions/osticket.py @@ -598,7 +598,9 @@ def get_hostname(): """Get hostname, returns str.""" cmd = ['hostnamectl', '--static'] result = run_program(cmd, check=False, encoding='utf-8', errors='ignore') - return result.stdout.strip() + result = result.stdout.strip() + result = result.replace('.1201.com', '') + return result def pad_with_dots(s, pad_right=False):