pseq: Modify JSON parsing for entire file
Modify functions that parse the entire JSON configuration file for the
phosphor-power-sequencer application. Parse the new top level JSON
properties.
Tested:
* Ran automated tests
Change-Id: I08f20fc09aa4eff5bc819398834afac61054f8db
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
diff --git a/phosphor-power-sequencer/src/power_control.cpp b/phosphor-power-sequencer/src/power_control.cpp
index fa43ff9..4b8315c 100644
--- a/phosphor-power-sequencer/src/power_control.cpp
+++ b/phosphor-power-sequencer/src/power_control.cpp
@@ -371,14 +371,14 @@
}
bool PowerControl::parseConfigFile(const std::filesystem::path& configFile,
- std::vector<std::unique_ptr<Rail>>& rails)
+ std::vector<std::unique_ptr<Rail>>&)
{
// Parse JSON configuration file
bool wasParsed{false};
try
{
- rails = config_file_parser::parse(configFile);
- wasParsed = true;
+ config_file_parser::parse(configFile, services);
+ // wasParsed = true;
}
catch (const std::exception& e)
{