From b4bc1c724569837dae1571ad807b526180006739 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 24 Mar 2021 15:27:23 -0400 Subject: [PATCH] Fix redfish FFDC name save with autosuffix Use the code from the IPMI oem enhancer to be consistent. Change-Id: I81316bb65e20657e2c48cdec2dc44dc2b890f7ba --- pyghmi/redfish/oem/lenovo/xcc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/redfish/oem/lenovo/xcc.py b/pyghmi/redfish/oem/lenovo/xcc.py index c82b565e..ccb15321 100644 --- a/pyghmi/redfish/oem/lenovo/xcc.py +++ b/pyghmi/redfish/oem/lenovo/xcc.py @@ -928,7 +928,7 @@ class OEMHandler(generic.OEMHandler): {'Generate_FFDC_status': 1}) url = '/ffdc/{0}'.format(result['FileName']) if autosuffix and not savefile.endswith('.tzz'): - savefile += '.tzz' + savefile += '-{0}'.format(result['FileName']) fd = webclient.FileDownloader(self.wc, url, savefile) fd.start() while fd.isAlive():