aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmpm/python/n3xx_bist4
1 files changed, 3 insertions, 1 deletions
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):
"""