Override remote controller check to ensure that remote controller is contactable

This commit is contained in:
James Page
2012-08-06 03:08:41 -07:00
committed by Bob Lantz
parent 9b11238467
commit 2b35a2caeb
+9
View File
@@ -1073,3 +1073,12 @@ class RemoteController( Controller ):
def stop( self ):
"Overridden to do nothing."
return
def checkListening( self ):
"Ensure that the remote controller is accessible"
listening = self.cmd( "echo A | telnet -e A %s %d" %
( self.ip, self.port ) )
if 'Unable' in listening:
raise Exception( "Unable to contact the remote controller"
" at %s:%d\n" % (self.ip, self.port))