From 31f9d3dce799ce86c903dd3e377d3f4038086ef7 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 7 Feb 2018 08:21:06 -0800 Subject: mpm: n310: bist: Add error_msg for temp bist if no sensores were found --- mpm/python/n3xx_bist | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mpm/python') diff --git a/mpm/python/n3xx_bist b/mpm/python/n3xx_bist index df3d37a4e..ba3a104e8 100755 --- a/mpm/python/n3xx_bist +++ b/mpm/python/n3xx_bist @@ -721,7 +721,9 @@ class N310BIST(object): if 'temp' in device.attributes.available_attributes \ and device.attributes.get('temp') is not None } - return len(result) >= 1, result + if len(result) < 1: + result['error_msg'] = "No temperature sensors found!" + return 'error_msg' not in result, result def bist_fan(self): """ -- cgit v1.2.3