diff --git a/pyghmi/ipmi/fru.py b/pyghmi/ipmi/fru.py index 6b6257ee..4a4d42bf 100644 --- a/pyghmi/ipmi/fru.py +++ b/pyghmi/ipmi/fru.py @@ -172,6 +172,8 @@ class FRU(object): raise iexc.IpmiException(response['error'], response['code']) self.rawfru.extend(response['data'][1:]) offset += response['data'][0] + if response['data'][0] == 0: + break if offset + chunksize > frusize: chunksize = frusize - offset