summaryrefslogtreecommitdiff
path: root/redfish-core/lib/task.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/lib/task.hpp')
-rw-r--r--redfish-core/lib/task.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/redfish-core/lib/task.hpp b/redfish-core/lib/task.hpp
index 40e1a51531..136412c369 100644
--- a/redfish-core/lib/task.hpp
+++ b/redfish-core/lib/task.hpp
@@ -298,7 +298,7 @@ struct TaskData : std::enable_shared_from_this<TaskData>
[self] { self->match.reset(); });
return;
}
- });
+ });
extendTimer(timeout);
messages.emplace_back(messages::taskStarted(std::to_string(index)));
@@ -348,7 +348,7 @@ inline void requestRoutesTaskMonitor(App& app)
// we compare against the string version as on failure
// strtoul returns 0
return std::to_string(task->index) == strParam;
- });
+ });
if (find == task::tasks.end())
{
@@ -363,7 +363,7 @@ inline void requestRoutesTaskMonitor(App& app)
return;
}
ptr->populateResp(asyncResp->res);
- });
+ });
}
inline void requestRoutesTask(App& app)
@@ -389,7 +389,7 @@ inline void requestRoutesTask(App& app)
// we compare against the string version as on failure
// strtoul returns 0
return std::to_string(task->index) == strParam;
- });
+ });
if (find == task::tasks.end())
{
@@ -433,7 +433,7 @@ inline void requestRoutesTask(App& app)
2, ' ', true, nlohmann::json::error_handler_t::replace);
}
asyncResp->res.jsonValue["PercentComplete"] = ptr->percentComplete;
- });
+ });
}
inline void requestRoutesTaskCollection(App& app)
@@ -467,7 +467,7 @@ inline void requestRoutesTaskCollection(App& app)
std::to_string(task->index));
members.emplace_back(std::move(member));
}
- });
+ });
}
inline void requestRoutesTaskService(App& app)
@@ -501,7 +501,7 @@ inline void requestRoutesTaskService(App& app)
asyncResp->res.jsonValue["ServiceEnabled"] = true;
asyncResp->res.jsonValue["Tasks"]["@odata.id"] =
"/redfish/v1/TaskService/Tasks";
- });
+ });
}
} // namespace redfish