Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dlipower/dlipower.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def login(self):

m = hashlib.md5() # nosec - The switch we are talking to uses md5 hashes
m.update(form_response.encode())
data = {'Username': 'admin', 'Password': m.hexdigest()}
data = {'Username': self.userid, 'Password': m.hexdigest()}
headers = {'Content-Type': 'application/x-www-form-urlencoded'}

try:
Expand Down Expand Up @@ -510,7 +510,7 @@ def statuslist(self):
except IndexError:
# Finding the root of the table with the outlet info failed
# try again assuming we're seeing the table for a user
# account insteaed of the admin account (tables are different)
# account instead of the admin account (tables are different)
try:
self._is_admin = False
root = soup.findAll('th', text='#')[0].parent.parent.parent
Expand Down