From 6c37f63ab8acbe2017ccaf1f5d3f40e0a1ce9bb4 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 16 May 2018 09:44:28 -0400 Subject: [PATCH] More informative message on password expiry Make it more clear what is happening when password had expired preventing login... Change-Id: I63a947cca6749ba12ab2d03e279016b389dc1f30 --- pyghmi/ipmi/oem/lenovo/nextscale.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyghmi/ipmi/oem/lenovo/nextscale.py b/pyghmi/ipmi/oem/lenovo/nextscale.py index 6c545ffc..9314d649 100644 --- a/pyghmi/ipmi/oem/lenovo/nextscale.py +++ b/pyghmi/ipmi/oem/lenovo/nextscale.py @@ -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'):