Skip to content

Commit

Permalink
fix(cluster): skip pruning servers without provider server id
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Sep 10, 2024
1 parent 5a66f5a commit b8c5306
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion svc/pkg/cluster/src/ops/server/prune_with_filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ async fn run_for_linode_account(
tracing::info!("pruning {} servers", servers.len());

for server in servers {
let linode_id = unwrap_ref!(server.provider_server_id).parse()?;
let Some(linode_id) = &server.provider_server_id else {
tracing::warn!(server_id = ?server.server_id, "provider_server_ide is none");
continue;
};
let linode_id = linode_id.parse()?;

tracing::info!("pruning {} (linode_id {})", server.server_id, linode_id);

Expand Down

0 comments on commit b8c5306

Please sign in to comment.