Update Associations For bmcweb changes
Updating according to
https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/22976
Tested: Thermal had all fans, and presence worked.
Change-Id: I03e1e13b3a9c2f6d2ac4b7afc6e2723c04597931
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/Utils.cpp b/src/Utils.cpp
index e43d90e..fade0e6 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -230,10 +230,9 @@
{
std::filesystem::path p(path);
- using Association = std::tuple<std::string, std::string, std::string>;
std::vector<Association> associations;
associations.push_back(
- Association("inventory", "sensors", p.parent_path().string()));
+ Association("chassis", "all_sensors", p.parent_path().string()));
association->register_property("associations", associations);
association->initialize();
}