diff options
author | James Feist <james.feist@linux.intel.com> | 2020-03-13 02:32:08 +0300 |
---|---|---|
committer | James Feist <james.feist@linux.intel.com> | 2020-03-17 19:33:52 +0300 |
commit | fe30672809d9dcf83f6cab821d02650b250664b9 (patch) | |
tree | fafba78ccfd37847fe927057c30213979bbff46e /redfish-core/lib/log_services.hpp | |
parent | f857e9ae6f6e7d567462f32cb5d9d3a7b581535e (diff) | |
download | bmcweb-fe30672809d9dcf83f6cab821d02650b250664b9.tar.xz |
Task: Add payload support
This adds the payload values to task responses.
Tested: passed validator
Change-Id: I50467e28ce8142d198f916ea0c63bd413edcd524
Signed-off-by: James Feist <james.feist@linux.intel.com>
Diffstat (limited to 'redfish-core/lib/log_services.hpp')
-rw-r--r-- | redfish-core/lib/log_services.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp index fd414aa331..b7fe62ccc3 100644 --- a/redfish-core/lib/log_services.hpp +++ b/redfish-core/lib/log_services.hpp @@ -1850,10 +1850,10 @@ class OnDemandCrashdump : public Node { std::shared_ptr<AsyncResp> asyncResp = std::make_shared<AsyncResp>(res); - auto generateonDemandLogCallback = [asyncResp]( - const boost::system::error_code - ec, - const std::string &resp) { + auto generateonDemandLogCallback = [asyncResp, + req](const boost::system::error_code + ec, + const std::string &resp) { if (ec) { if (ec.value() == boost::system::errc::operation_not_supported) @@ -1887,6 +1887,7 @@ class OnDemandCrashdump : public Node "crashdump'"); task->startTimer(std::chrono::minutes(5)); task->populateResp(asyncResp->res); + task->payload.emplace(req); }; crow::connections::systemBus->async_method_call( std::move(generateonDemandLogCallback), crashdumpObject, |