mirror of
https://opendev.org/x/pyghmi
synced 2026-08-28 01:26:47 +00:00
IMMv1 "Unable To Process Request" message
https: //gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/a6a4e1968e2b1df660947910e95e33450a520a36 (174389) [pyghmi] SAP Customer - IMMv1 "Unable To Process Request" message. Change-Id: Ib7b40c6bb95b7b873f68f694ce6a5e92162c4137
This commit is contained in:
@@ -1923,15 +1923,11 @@ class Command(object):
|
||||
privilege_level='no_access')
|
||||
try:
|
||||
# First try to set name to all \x00 explicitly
|
||||
# Fix bug-174389, don't try to send \xff command,
|
||||
# will cause IMM1 can't login
|
||||
self.set_user_name(uid, '')
|
||||
except exc.IpmiException as ie:
|
||||
if ie.ipmicode != 0xcc:
|
||||
raise
|
||||
# An invalid data field in request is frequently reported.
|
||||
# however another convention that exists is all '\xff'
|
||||
# if this fails, pass up the error so that calling code knows
|
||||
# that the deletion did not go as planned for now
|
||||
self.set_user_name(uid, b'\xff' * 16)
|
||||
except exc.IpmiException:
|
||||
raise
|
||||
return True
|
||||
|
||||
def disable_user(self, uid, mode):
|
||||
|
||||
Reference in New Issue
Block a user