From: Stephen Soltesz Date: Fri, 18 Sep 2009 22:44:11 +0000 (+0000) Subject: bug, hard coded port number for telnet on ipal. Made port dynamic. X-Git-Tag: Monitor-3.0-21~6 X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=commitdiff_plain;h=9d7bbea71d81d32db0a175a701b487a9237dd8f0 bug, hard coded port number for telnet on ipal. Made port dynamic. --- diff --git a/pcucontrol/models/IPAL.py b/pcucontrol/models/IPAL.py index 641326f..8929946 100644 --- a/pcucontrol/models/IPAL.py +++ b/pcucontrol/models/IPAL.py @@ -49,13 +49,14 @@ class IPAL(PCUControl): self.transport.open(self.host) ## XXX Some iPals require you to hit Enter a few times first self.transport.ifThenSend("Password >", "\r\n\r\n", ExceptionNotFound) + self.transport.ifThenSend("Password >", "\r\n\r\n", ExceptionNotFound) # Login self.transport.ifThenSend("Password >", self.password, ExceptionPassword) self.transport.write("\r\n\r\n") if not dryrun: # P# - Pulse relay print "node_port %s" % node_port self.transport.ifThenSend("Enter >", - "P7", # % node_port, + "P%s"%node_port, ExceptionNotFound) print "send newlines" self.transport.write("\r\n\r\n")