add rc-scripts and confs. Make log message clear when host is not found

This commit is contained in:
ahmadbilalkhalid 2019-11-27 19:19:57 +05:00
commit db7fcdd66f
5 changed files with 26 additions and 1 deletions

View file

@ -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()