Revert "Refactored the code to remove confusing hyphens"
This reverts commit 3adba999f664216ae1842b9b528f837812a6afad.
diff --git a/lavapdu/engine.py b/lavapdu/engine.py
index 83ab364..6cb08a4 100644
--- a/lavapdu/engine.py
+++ b/lavapdu/engine.py
@@ -30,14 +30,12 @@
connection = None
prompt = 0
driver = None
- USERNAME = "apc"
- PASSWORD = "apc"
def __init__(self, pdu_hostname, pdu_telnetport = 23):
self.exec_string = "/usr/bin/telnet %s %d" % (pdu_hostname, pdu_telnetport)
logging.debug("Created new PDUEngine: %s" % self.exec_string)
#self.connection.logfile_read = sys.stdout
- prompt = self._pdu_login(self.USERNAME,self.PASSWORD)
+ prompt = self._pdu_login("apc","apc")
if prompt == 0:
logging.debug("Found a v5 prompt")
self.driver = apc8959(self.connection)
@@ -75,9 +73,9 @@
self.pduconnect()
self.connection.send("\r")
self.connection.expect ("User Name :")
- self.connection.send("%s\r" % username)
+ self.connection.send("apc\r")
self.connection.expect("Password :")
- self.connection.send("%s\r" % password)
+ self.connection.send("apc\r")
return self.connection.expect(["apc>", ">"])