bmc: add mode to systemd preparation action
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: If29311cfa9eddecdd81781867598a73789225bc5
diff --git a/bmc/prepare_systemd.hpp b/bmc/prepare_systemd.hpp
index af8e065..b8fe605 100644
--- a/bmc/prepare_systemd.hpp
+++ b/bmc/prepare_systemd.hpp
@@ -13,11 +13,13 @@
{
public:
static std::unique_ptr<TriggerableActionInterface>
- CreatePreparation(sdbusplus::bus::bus&& bus,
- const std::string& service);
+ CreatePreparation(sdbusplus::bus::bus&& bus, const std::string& service,
+ const std::string& mode);
- SystemdPreparation(sdbusplus::bus::bus&& bus, const std::string& service) :
- bus(std::move(bus)), triggerService(service)
+ SystemdPreparation(sdbusplus::bus::bus&& bus, const std::string& service,
+ const std::string& mode) :
+ bus(std::move(bus)),
+ triggerService(service), mode(mode)
{
}
@@ -34,6 +36,7 @@
private:
sdbusplus::bus::bus bus;
const std::string triggerService;
+ const std::string mode;
ActionStatus state = ActionStatus::unknown;
};