add rc-scripts and confs. Make log message clear when host is not found
This commit is contained in:
parent
789e37df6b
commit
db7fcdd66f
5 changed files with 26 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ def main(hostname):
|
|||
|
||||
host_pool = HostPool(etcd_client, env_vars.get('HOST_PREFIX'))
|
||||
host = next(filter(lambda h: h.hostname == hostname, host_pool.hosts), None)
|
||||
assert host is not None, "No such host"
|
||||
assert host is not None, "No such host with name = {}".format(hostname)
|
||||
|
||||
try:
|
||||
heartbeat_updating_process.start()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue