summaryrefslogtreecommitdiff
path: root/redfish-core/lib/thermal_subsystem.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/lib/thermal_subsystem.hpp')
-rw-r--r--redfish-core/lib/thermal_subsystem.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/redfish-core/lib/thermal_subsystem.hpp b/redfish-core/lib/thermal_subsystem.hpp
index 271951ecb3..6528a55fc6 100644
--- a/redfish-core/lib/thermal_subsystem.hpp
+++ b/redfish-core/lib/thermal_subsystem.hpp
@@ -7,6 +7,8 @@
#include "utils/chassis_utils.hpp"
#include "utils/json_utils.hpp"
+#include <boost/url/format.hpp>
+
#include <optional>
#include <string>
@@ -33,8 +35,8 @@ inline void doThermalSubsystemCollection(
asyncResp->res.jsonValue["Name"] = "Thermal Subsystem";
asyncResp->res.jsonValue["Id"] = "ThermalSubsystem";
- asyncResp->res.jsonValue["@odata.id"] = crow::utility::urlFromPieces(
- "redfish", "v1", "Chassis", chassisId, "ThermalSubsystem");
+ asyncResp->res.jsonValue["@odata.id"] = boost::urls::format(
+ "/redfish/v1/Chassis/{}/ThermalSubsystem", chassisId);
asyncResp->res.jsonValue["Status"]["State"] = "Enabled";
asyncResp->res.jsonValue["Status"]["Health"] = "OK";