From 810a75821d6f5b11d0159a0cfc5fbad78477d76d Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 3 Dec 2019 11:08:16 -0500 Subject: [PATCH] Make fishclient optionsal on list_media tsma is shared between IPMI plugin and redfish. Since IPMI doesn't provide fishclient and tsma doesn't use it anyway, make it optional argument. Change-Id: I0bd9e72c0aae713b96a8ef28244e7182dcc1e1a7 --- pyghmi/redfish/oem/lenovo/tsma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/redfish/oem/lenovo/tsma.py b/pyghmi/redfish/oem/lenovo/tsma.py index bbd2bd78..14b01c58 100644 --- a/pyghmi/redfish/oem/lenovo/tsma.py +++ b/pyghmi/redfish/oem/lenovo/tsma.py @@ -493,7 +493,7 @@ class TsmHandler(generic.OEMHandler): raise exc.UnsupportedFunctionality( 'Remote media upload not supported on this system') - def list_media(self, fishclient): + def list_media(self, fishclient=None): wc = self.wc rsp = wc.grab_json_response('/api/settings/media/general') cds = rsp['cd_remote_server_address']