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