Skip to content

Commit

Permalink
fix(backend): Do not check the health of the force-included nodes (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-tomic committed May 16, 2024
1 parent f8b960e commit 2ab31fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rs/ic-management-backend/src/endpoints/subnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ async fn replace(
.collect::<Vec<_>>();

if !unhealthy.is_empty() {
// Do not check the health of the force-included nodes
let unhealthy = unhealthy
.into_iter()
.filter(|n| !request.include.as_ref().unwrap_or(&vec![]).contains(&n.id))
.collect::<Vec<_>>();
replacements_unhealthy.extend(unhealthy);
}
}
Expand Down

0 comments on commit 2ab31fb

Please sign in to comment.