Fix whitespace and change no controller exception to warning.

This commit is contained in:
Bob Lantz
2012-08-06 11:41:00 -07:00
parent 2b35a2caeb
commit 54c51c0299
+2 -3
View File
@@ -1075,10 +1075,9 @@ class RemoteController( Controller ):
return return
def checkListening( self ): def checkListening( self ):
"Ensure that the remote controller is accessible" "Warn if remote controller is not accessible"
listening = self.cmd( "echo A | telnet -e A %s %d" % listening = self.cmd( "echo A | telnet -e A %s %d" %
( self.ip, self.port ) ) ( self.ip, self.port ) )
if 'Unable' in listening: if 'Unable' in listening:
raise Exception( "Unable to contact the remote controller" warn( "Unable to contact the remote controller"
" at %s:%d\n" % ( self.ip, self.port ) ) " at %s:%d\n" % ( self.ip, self.port ) )