From 583e8418d3eded562606b2c6d45c31ba508bffee Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 9 Jun 2020 09:32:50 -0400 Subject: [PATCH] Do not swallow TSM errors Raise TSM ffdc download errors if they should occur. Change-Id: I431f4942164866aec6ffba01c7c4f4c10156f101 --- pyghmi/redfish/oem/lenovo/tsma.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyghmi/redfish/oem/lenovo/tsma.py b/pyghmi/redfish/oem/lenovo/tsma.py index 2d7c2397..d16c74a4 100644 --- a/pyghmi/redfish/oem/lenovo/tsma.py +++ b/pyghmi/redfish/oem/lenovo/tsma.py @@ -125,6 +125,8 @@ class TsmHandler(generic.OEMHandler): if currprog: progress({'phase': 'download', 'progress': 100 * currprog}) + if fd.exc: + raise fd.exc if progress: progress({'phase': 'complete'}) return savefile