diff options
author | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-08-21 17:07:29 +0530 |
---|---|---|
committer | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-08-23 18:56:41 +0530 |
commit | 1ec291fbaddf4f2b44cdfff3891d8782f28fb2c9 (patch) | |
tree | eb63f6f866cc0e2fdf20ea0b18eeffaccc10cd8a /occ_finder.cpp | |
parent | 2dc9b1a24f753270eae01be8b71c0c89a3c669cc (diff) | |
download | openpower-occ-control-1ec291fbaddf4f2b44cdfff3891d8782f28fb2c9.tar.gz openpower-occ-control-1ec291fbaddf4f2b44cdfff3891d8782f28fb2c9.zip |
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>
Diffstat (limited to 'occ_finder.cpp')
-rw-r--r-- | occ_finder.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/occ_finder.cpp b/occ_finder.cpp index a533067..b47cc8f 100644 --- a/occ_finder.cpp +++ b/occ_finder.cpp @@ -23,7 +23,7 @@ constexpr auto toChar(size_t c) return map[c]; } -std::vector<std::string> get() +std::vector<std::string> get(sdbusplus::bus::bus& bus) { namespace fs = std::experimental::filesystem; using Path = std::string; @@ -31,7 +31,6 @@ std::vector<std::string> get() using Interface = std::string; using Interfaces = std::vector<Interface>; - auto bus = sdbusplus::bus::new_default(); auto mapper = bus.new_method_call( "xyz.openbmc_project.ObjectMapper", |