From 9d7bbea71d81d32db0a175a701b487a9237dd8f0 Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Fri, 18 Sep 2009 22:44:11 +0000 Subject: [PATCH] bug, hard coded port number for telnet on ipal. Made port dynamic. --- pcucontrol/models/IPAL.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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") -- 2.43.0