2
0
mirror of https://opendev.org/x/pyghmi synced 2026-04-11 04:21:28 +00:00

Fix redfish firmware update without progress

The caller opting not to have a callback is no longer a problem
for redfish updates.

Change-Id: I10378bb1d0491e1f446569eb443fa3023b4d2af4
This commit is contained in:
Jarrod Johnson
2021-07-08 10:14:57 -04:00
parent 73dfd3c62b
commit 982ef53f86

View File

@@ -1573,6 +1573,8 @@ class Command(object):
update process. Provide if
:param bank: Indicate a target 'bank' of firmware if supported
"""
if progress is None:
progress = lambda x: True
return self.oem.update_firmware(file, data, progress, bank)
def get_diagnostic_data(self, savefile, progress=None, autosuffix=False):