Hosts are global

This commit is contained in:
andreas
2005-07-21 16:04:56 +00:00
parent e75e297b98
commit 0e278a52e1
+3 -2
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env python #!/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) # Wait for heartbeat messages and act on them (or their absence)
# #
import time, os, string, sys, socket, curses, atexit, select, SocketServer, getopt import time, os, string, sys, socket, curses, atexit, select, SocketServer, getopt
@@ -146,7 +146,8 @@ def initwin():
# #
# #
def checkoverdue(): def checkoverdue():
global hosts
for h in hosts: for h in hosts:
if hosts[h].state == Host.down: if hosts[h].state == Host.down:
continue continue