Override remote controller check to ensure that remote controller is contactable
This commit is contained in:
@@ -1073,3 +1073,12 @@ class RemoteController( Controller ):
|
|||||||
def stop( self ):
|
def stop( self ):
|
||||||
"Overridden to do nothing."
|
"Overridden to do nothing."
|
||||||
return
|
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))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user