Expose node
This commit is contained in:
parent
fdf782bc2f
commit
ed3f7872e9
|
@ -7,8 +7,9 @@ import time
|
|||
|
||||
import requests
|
||||
|
||||
def record_observations(observations):
|
||||
node = socket.gethostbyaddr(socket.gethostname())[0]
|
||||
|
||||
def record_observations(observations):
|
||||
for dir in (".", os.environ["HOME"] + "/.config/ltsdb", "/etc/ltsdb"):
|
||||
try:
|
||||
with open(dir + "/config.json") as fh:
|
||||
|
|
Loading…
Reference in New Issue