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):