phosphor-host-condition-gpio: enable multi-host support
The current implementation fails with:
```
[ 18.664351] systemd[1]: phosphor-host-condition-gpio@1.service: Two services allocated for the same bus name xyz.openbmc_project.State.HostCondition.Gpio, refusing operation.
```
Add the host id into the reserved bus name to avoid collisions.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ia4f291d20df913d3f506d976a961a770a81724fc
diff --git a/host_condition_gpio/host_condition_main.cpp b/host_condition_gpio/host_condition_main.cpp
index 6912b7c..38a444a 100644
--- a/host_condition_gpio/host_condition_main.cpp
+++ b/host_condition_gpio/host_condition_main.cpp
@@ -23,7 +23,7 @@
auto bus = sdbusplus::bus::new_default();
std::string objGroupName = HOST_GPIOS_OBJPATH;
std::string objPathInst = objGroupName + "/host" + hostId;
- std::string busName = HOST_GPIOS_BUSNAME;
+ std::string busName = HOST_GPIOS_BUSNAME + hostId;
// Add sdbusplus ObjectManager
sdbusplus::server::manager_t objManager(bus, objGroupName.c_str());