Skip to content
Snippets Groups Projects
Commit 2468362c authored by Anael Beutot's avatar Anael Beutot
Browse files

Clean.

parent ea45151e
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ import re
import os as os_
import platform as platform_
from multiprocessing import cpu_count
from socket import gethostname, gethostbyaddr
from socket import getfqdn
import psutil
......@@ -15,9 +15,7 @@ from ccnode.tags import Tag, DynamicTags
def h():
"""Hostname tag."""
hn = gethostname()
return gethostbyaddr(hn)[0] or hn
return getfqdn()
h.ttl = 3600 * 24 # one day
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment