sched-host-tran: support multi-host
The State.Host objects are now templated, so the ScheduledHostTransition
similarly needs to be templated.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I60751dbe5fff5e3c0c2c7a19515524cf5f6bc8f7
diff --git a/scheduled_host_transition.cpp b/scheduled_host_transition.cpp
index ed843cd..8ae81d2 100644
--- a/scheduled_host_transition.cpp
+++ b/scheduled_host_transition.cpp
@@ -94,7 +94,7 @@
void ScheduledHostTransition::hostTransition()
{
- auto hostPath = std::string{HOST_OBJPATH} + '0';
+ auto hostPath = std::string{HOST_OBJPATH} + std::to_string(id);
// Set RestartCause to indicate this transition is occurring due to a
// scheduled host transition as long as it's not an off request