Commit d9e6bda4 authored by Michael Ott's avatar Michael Ott
Browse files

Create IPMI SDR Cache file if it has been deleted before or never existed

parent 280eb6c5
......@@ -115,7 +115,10 @@ void IPMIHost::createSdrCache() {
LOG(debug) << "Deleting SDR cache " << _cache;
ipmi_sdr_cache_delete (_sdrCtx, _cache.c_str());
}
ipmi_sdr_cache_open(_sdrCtx, _ipmiCtx, _cache.c_str());
if (ipmi_sdr_cache_create(_sdrCtx, _ipmiCtx, _cache.c_str(), IPMI_SDR_CACHE_CREATE_FLAGS_DEFAULT, NULL, NULL) == 0) {
LOG(debug) << "Created new SDR cache " << _cache;
ipmi_sdr_cache_open(_sdrCtx, _ipmiCtx, _cache.c_str());
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment