summaryrefslogtreecommitdiff
path: root/include/ibm
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2024-05-21 04:02:58 +0300
committerEd Tanous <ed@tanous.net>2024-05-31 23:43:30 +0300
commit20fa6a2c6cea77a4b411634dfca67eef6c8f430f (patch)
tree0de9b3c73870f2a7dd45ea6f6807c4c19b16f0cd /include/ibm
parentbaddb5971078260665d7685f4132f30cde274cec (diff)
downloadbmcweb-master.tar.xz
Remove the last instances of json patternHEADmaster
In the past, we've tried to erradicate the use of nlohmann::json(initiatlizer_list<...>) because it bloats binary sizes, as every type is given a new nlohmann constructor. This commit hunts down the last few places where we call this. There is still 2 remaining in openbmc_dbus_rest after this, but those are variant accesses that are difficult to triage, and considering it's a less used api, they're left as is. Tested: WIP Change-Id: Iaac24584bb78bb238da69010b511c1d598bd38bc Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'include/ibm')
-rw-r--r--include/ibm/management_console_rest.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/ibm/management_console_rest.hpp b/include/ibm/management_console_rest.hpp
index 51437c9ac0..c32412a68e 100644
--- a/include/ibm/management_console_rest.hpp
+++ b/include/ibm/management_console_rest.hpp
@@ -243,9 +243,8 @@ inline void
asyncResp->res.jsonValue["Name"] = "ConfigFiles";
asyncResp->res.jsonValue["Members"] = std::move(pathObjList);
- asyncResp->res.jsonValue["Actions"]["#IBMConfigFiles.DeleteAll"] = {
- {"target",
- "/ibm/v1/Host/ConfigFiles/Actions/IBMConfigFiles.DeleteAll"}};
+ asyncResp->res.jsonValue["Actions"]["#IBMConfigFiles.DeleteAll"]["target"] =
+ "/ibm/v1/Host/ConfigFiles/Actions/IBMConfigFiles.DeleteAll";
}
inline void