Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if 'filter_attr' in client:
rmc_client.filter_attr = client['filter_attr']
if 'filter_value' in client:
rmc_client.filter_value = client['filter_value']
getdata = client['get']
rmc_client._get_cache = dict()
for key in list(getdata.keys()):
restreq = redfish.rest.v1.RestRequest(\
method='GET', path=key)
getdata[key]['restreq'] = restreq
rmc_client._get_cache[key] = (\
redfish.rest.v1.StaticRestResponse(\
**getdata[key]))
rmc_client._monolith = RisMonolith(rmc_client)
rmc_client._monolith.load_from_dict(client['monolith'])
self._rmc._rmc_clients.append(rmc_client)
except BaseException as excp:
self._rmc.warn('Unable to read cache data %s' % excp)