2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-27 19:37:44 +00:00

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
This commit is contained in:
Jarrod Johnson 2019-12-03 11:08:16 -05:00
parent 6c1f7dd079
commit 810a75821d

View File

@ -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']