From 951f1bb3f42e32cf260a8f119ba3d99003f03ffc Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 29 Oct 2019 16:09:56 -0400 Subject: [PATCH] Return potentially modified filename Since the autosuffix function can change the filename, return the modified name so that the caller knows the changed name. Change-Id: I751d32d70f0d2c1813b1af081ee61b07a8faab90 --- pyghmi/ipmi/oem/lenovo/imm.py | 1 + pyghmi/ipmi/oem/lenovo/nextscale.py | 1 + pyghmi/redfish/oem/lenovo/xcc.py | 1 + 3 files changed, 3 insertions(+) diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index 8adc6722..9238ec9c 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -978,6 +978,7 @@ class XCCClient(IMMClient): self._refresh_token() if progress: progress({'phase': 'complete'}) + return savefile def disk_inventory(self, mode=0): # mode 0 is firmware, 1 is hardware diff --git a/pyghmi/ipmi/oem/lenovo/nextscale.py b/pyghmi/ipmi/oem/lenovo/nextscale.py index bc7d46b5..2660e9e0 100644 --- a/pyghmi/ipmi/oem/lenovo/nextscale.py +++ b/pyghmi/ipmi/oem/lenovo/nextscale.py @@ -370,6 +370,7 @@ class SMMClient(object): 'progress': 100 * self.wc.get_download_progress()}) if progress: progress({'phase': 'complete'}) + return savefile def process_fru(self, fru): # TODO(jjohnson2): can also get EIOM, SMM, and riser data if warranted diff --git a/pyghmi/redfish/oem/lenovo/xcc.py b/pyghmi/redfish/oem/lenovo/xcc.py index efe5aa16..59bbb950 100644 --- a/pyghmi/redfish/oem/lenovo/xcc.py +++ b/pyghmi/redfish/oem/lenovo/xcc.py @@ -709,6 +709,7 @@ class OEMHandler(generic.OEMHandler): self._refresh_token() if progress: progress({'phase': 'complete'}) + return savefile def get_licenses(self): licdata = self.wc.grab_json_response('/api/providers/imm_fod')