summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheng C Yang <cheng.c.yang@intel.com>2019-09-10 16:41:30 +0300
committerCheng C Yang <cheng.c.yang@intel.com>2019-09-10 16:41:30 +0300
commit124b37d11c5a7b63995da90fd51f9e9e48857925 (patch)
tree27031f40baf98b89921ba2f758fcc58c5978d7e0
parent10f4d8299e2b6d6251a33ea3da94a315bfdaf131 (diff)
downloadprovingground-124b37d11c5a7b63995da90fd51f9e9e48857925.tar.xz
Fix no PSU remove and insert log.
Fix the problem that after removed or inserted PSU, no related Redfish log is asserted. Tested: Remove one PSU, PowerSupplyRemoved log has been recorded. Insert the PSU again, PowerSupplyInserted log has been recorded. Change-Id: I7bd2563e7f7c15a60e506a21ce31ec6f71309735 Signed-off-by: Cheng C Yang <cheng.c.yang@intel.com>
-rw-r--r--psu-manager/src/cold_redundancy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/psu-manager/src/cold_redundancy.cpp b/psu-manager/src/cold_redundancy.cpp
index 14fabca..fef4a99 100644
--- a/psu-manager/src/cold_redundancy.cpp
+++ b/psu-manager/src/cold_redundancy.cpp
@@ -366,8 +366,8 @@ void ColdRedundancy::createPSU(
conn->async_method_call(
[this, &conn,
- &interface](const boost::system::error_code ec,
- PropertyMapType propMap) {
+ interface](const boost::system::error_code ec,
+ PropertyMapType propMap) {
if (ec)
{
std::cerr