git://git.onelab.eu
/
monitor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
71ef8e8
)
bug, hard coded port number for telnet on ipal. Made port dynamic.
author
Stephen Soltesz
<soltesz@cs.princeton.edu>
Fri, 18 Sep 2009 22:44:11 +0000
(22:44 +0000)
committer
Stephen Soltesz
<soltesz@cs.princeton.edu>
Fri, 18 Sep 2009 22:44:11 +0000
(22:44 +0000)
pcucontrol/models/IPAL.py
patch
|
blob
|
history
diff --git
a/pcucontrol/models/IPAL.py
b/pcucontrol/models/IPAL.py
index
641326f
..
8929946
100644
(file)
--- 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.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 >",
# 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 >",
- "P
7", # %
node_port,
+ "P
%s"%
node_port,
ExceptionNotFound)
print "send newlines"
self.transport.write("\r\n\r\n")
ExceptionNotFound)
print "send newlines"
self.transport.write("\r\n\r\n")