Address issue #96
This commit is contained in:
parent
8b25326b2d
commit
f2373edd8e
1 changed files with 3 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue