Use only first part of hostname

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-07-20 08:56:55 +02:00
parent e6db06d2d7
commit 04a54c4a48
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -2,7 +2,7 @@
import socket
hostname = socket.gethostname()
hostname = socket.gethostname().split('.')[0]
s = 0
for c in hostname: