Skip to content

Commit

Permalink
inject
Browse files Browse the repository at this point in the history
  • Loading branch information
osalyk committed Jul 25, 2024
1 parent 3a1582e commit 21103d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tests/ras/utils/inject_manager/inject_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@ int InjectManager::Inject(
const std::vector<DimmNamespace> &us_namespaces) const {
for (const auto &dn : us_namespaces) {
for (const auto &d : GetDimmsToInject(dn)) {
if (d.InjectUnsafeShutdown() != 0) {
int ret = 0;
ret = d.InjectUnsafeShutdown();
if (ret != 0) {
return -1;
} else {
std::cout << "Inject: " << ret << std::endl;
}
}
}
Expand Down

0 comments on commit 21103d4

Please sign in to comment.