diff --git a/clients/ltsdb_record.py b/clients/ltsdb_record.py index 0ac8770..913d998 100644 --- a/clients/ltsdb_record.py +++ b/clients/ltsdb_record.py @@ -7,8 +7,9 @@ import time import requests +node = socket.gethostbyaddr(socket.gethostname())[0] + def record_observations(observations): - node = socket.gethostbyaddr(socket.gethostname())[0] for dir in (".", os.environ["HOME"] + "/.config/ltsdb", "/etc/ltsdb"): try: with open(dir + "/config.json") as fh: