Hosts are global
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user