summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2021-06-30 21:44:29 +0300
committerGunnar Mills <gmills@us.ibm.com>2021-06-30 21:49:59 +0300
commit729f55fe555e07821626aba322f42ca783652928 (patch)
treea2194ee1e7a85ba7fd14e9e7669ec170e03ff103
parent720487803a1890e8d4e5d91463e7ec62b4b23f74 (diff)
downloadbmcweb-729f55fe555e07821626aba322f42ca783652928.tar.xz
Remove code using ambiguous privileges constructor
432a890c removed the ambiguous privileges constructor. af61db10 added code that used this removed ambiguous privileges constructor. This is causing bmcweb CI and bmcweb autobumps to fail. The error looks like: error: cannot convert '<brace-enclosed initializer list>' to 'const std::initializer_list<std::initializer_list<const char*> >&' | 3102 | .privileges({"Login"}) af61db10 passed CI because it was pushed before and based on a parent that was before 432a890c. Tested: bmcweb builds. No further testing done. Change-Id: I21399033d63851e3c83f3cd5a00e1227064e6941 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r--redfish-core/lib/log_services.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp
index 2800e86a12..9aff5c6e52 100644
--- a/redfish-core/lib/log_services.hpp
+++ b/redfish-core/lib/log_services.hpp
@@ -3099,7 +3099,7 @@ inline void requestRoutesPostCodesEntryAdditionalData(App& app)
{
BMCWEB_ROUTE(app, "/redfish/v1/Systems/system/LogServices/PostCodes/"
"Entries/<str>/attachment/")
- .privileges({"Login"})
+ .privileges({{"Login"}})
.methods(boost::beast::http::verb::get)(
[](const crow::Request& req,
const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,