[host] get ourselves from etcd
This commit is contained in:
parent
e775570884
commit
2566e86f1e
1 changed files with 3 additions and 0 deletions
|
@ -59,6 +59,9 @@ def main(hostname):
|
||||||
host_key, host_entry, value_in_json=True
|
host_key, host_entry, value_in_json=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# update, get ourselves now for sure
|
||||||
|
host = next(filter(lambda h: h.hostname == hostname, host_pool.hosts), None)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
heartbeat_updating_process = mp.Process(target=update_heartbeat, args=(hostname,))
|
heartbeat_updating_process = mp.Process(target=update_heartbeat, args=(hostname,))
|
||||||
heartbeat_updating_process.start()
|
heartbeat_updating_process.start()
|
||||||
|
|
Loading…
Reference in a new issue