diff --git a/storcli.py b/storcli.py index 4f4ade1..153c1d7 100644 --- a/storcli.py +++ b/storcli.py @@ -62,7 +62,7 @@ def main(args): 'errors_correctable': int(resp['Status']['Memory Correctable Errors']), 'errors_uncorrectable': int(resp['Status']['Memory Uncorrectable Errors']), 'bbu': int(resp['HwCfg']['BBU'] != 'Absent'), - 'roc_temp': int(resp['HwCfg']['ROC temperature(Degree Celsius)']), + 'roc_temp': int(resp['HwCfg'].get('ROC temperature(Degree Celsius)', 0)), }) for vd in resp['VD LIST']: