Remove creating sdbusplus handler in occ_finder
occ finder was creating a separate sdbusplus handler
to access the Inventory instead of using the one which
is already available. This commit will enforce using the
bus which is already created.
Change-Id: Ic256f185b67c661ba551139d5e057eee3ac67c7e
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
diff --git a/occ_manager.hpp b/occ_manager.hpp
index df6f199..e79ac3c 100644
--- a/occ_manager.hpp
+++ b/occ_manager.hpp
@@ -44,7 +44,7 @@
event(event)
{
// Check if CPU inventory exists already.
- auto occs = open_power::occ::finder::get();
+ auto occs = open_power::occ::finder::get(bus);
if (occs.empty())
{
// Need to watch for CPU inventory creation.