2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-15 12:17:44 +00:00

Merge "Tolerate alternative return code for FRU size"

This commit is contained in:
Jenkins 2015-06-05 15:29:39 +00:00 committed by Gerrit Code Review
commit aeece54e4c

View File

@ -160,7 +160,7 @@ class FRU(object):
response = self.ipmicmd.raw_command(
netfn=0xa, command=0x11, data=[fruid, offset & 0xff,
offset >> 8, chunksize])
if response['code'] == 201:
if response['code'] in (201, 202):
# if it was too big, back off and try smaller
# Try just over half to mitigate the chance of
# one request becoming three rather than just two