commit | 159121592d4218b045d1a3310941b45cd17de836 | [log] [tgz] |
---|---|---|
author | George Liu <liuxiwei@inspur.com> | Wed Jan 11 10:18:18 2023 +0800 |
committer | George Liu <liuxiwei@inspur.com> | Wed Jan 11 10:41:30 2023 +0800 |
tree | 8754a5c01bc2850b0f8ea3bf2d50a68ad3a03879 | |
parent | 7a1dbc4803bf78bfc0c574e6676b3c5def4cdae3 [diff] |
Fix parameter type for calling getSubTreePaths method The interface attribute type that calls the getSubTreePaths method should use std::string_view instead of const char*. bump is failing. https://gerrit.openbmc.org/c/openbmc/openbmc/+/60221 https://jenkins.openbmc.org/job/ci-openbmc/15513/distro=ubuntu,label=docker-builder,target=witherspoon/console Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I9dc4a710da0bdcec91a73ded89a253baa04a3550
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp index e5beb32..09b2155 100644 --- a/redfish-core/lib/log_services.hpp +++ b/redfish-core/lib/log_services.hpp
@@ -2282,7 +2282,7 @@ asyncResp->res.jsonValue["Members@odata.count"] = logServiceArray.size(); #ifdef BMCWEB_ENABLE_REDFISH_DUMP_LOG - const std::array<const char*, 1> interfaces = { + constexpr std::array<std::string_view, 1> interfaces = { "xyz.openbmc_project.Collection.DeleteAll"}; dbus::utility::getSubTreePaths( "/xyz/openbmc_project/dump", 0, interfaces,