From 982ef53f869310d0d634bc122db7e271c33ae8e7 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 8 Jul 2021 10:14:57 -0400 Subject: [PATCH] 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 --- pyghmi/redfish/command.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyghmi/redfish/command.py b/pyghmi/redfish/command.py index b72a9d81..c53bcf28 100644 --- a/pyghmi/redfish/command.py +++ b/pyghmi/redfish/command.py @@ -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):