The class ` NodeProxyCache()` is intended for that, it already
has this information so there's no need to make a call to `get_store()`
each time we want to access idrac details.
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit
a0f96aa5f1a27ec84e09f0bd030f62e39203e4f7)
results: Dict[str, Any] = {}
if self.validate_node_proxy_data(data):
- idrac_details = self.mgr.get_store('node_proxy/idrac')
- idrac_details_json = json.loads(idrac_details)
- results['result'] = idrac_details_json[data["cephx"]["name"]]
+ host = data["cephx"]["name"]
+ results['result'] = self.mgr.node_proxy.idrac.get(host)
else:
results['result'] = self.validate_msg