Hosts are global

This commit is contained in:
andreas
2005-07-21 16:04:56 +00:00
parent e75e297b98
commit 0e278a52e1
+2 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# $Id: hbd,v 1.4 2005/07/21 16:02:39 andreas Exp $
# $Id: hbd,v 1.5 2005/07/21 16:04:56 andreas Exp $
# Wait for heartbeat messages and act on them (or their absence)
#
import time, os, string, sys, socket, curses, atexit, select, SocketServer, getopt
@@ -146,6 +146,7 @@ def initwin():
#
#
def checkoverdue():
global hosts
for h in hosts:
if hosts[h].state == Host.down: