2
0
mirror of https://opendev.org/x/pyghmi synced 2025-09-03 00:38:08 +00:00

More informative message on password expiry

Make it more clear what is happening when password
had expired preventing login...

Change-Id: I63a947cca6749ba12ab2d03e279016b389dc1f30
This commit is contained in:
Jarrod Johnson
2018-05-16 09:44:28 -04:00
parent 5cd53d83ed
commit 6c37f63ab8

View File

@@ -278,6 +278,10 @@ class SMMClient(object):
for data in authdata.findall('authResult'):
if int(data.text) != 0:
raise Exception("Firmware update already in progress")
for data in authdata.findall('forwardUrl'):
if 'renew' in data.text:
raise Exception("Account password has expired on remote "
"device")
self.st1 = None
self.st2 = None
for data in authdata.findall('st1'):