X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=pcucontrol%2Fmodels%2FIPAL.py;h=89299463b56dade823a3ae980f61232490737328;hb=9d7bbea71d81d32db0a175a701b487a9237dd8f0;hp=641326f958a3db38d5f87beffc4e613042fc1e2e;hpb=71ef8e810de57703185bf4d6ebf9d0d2a69a1a91;p=monitor.git 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")