Skip to content

Commit 1faf0b8

Browse files
committed
wip
1 parent cd974ca commit 1faf0b8

File tree

1 file changed

+5
-3
lines changed
  • nexus/reconfigurator/execution/src

1 file changed

+5
-3
lines changed

nexus/reconfigurator/execution/src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,6 @@ fn register_cleanup_expunged_zones_step<'a>(
493493
)
494494
.register();
495495
}
496-
// TODO: I don't think we can safely do this if we fail to expunge zones/disks
497496
fn register_decommission_sleds_step<'a>(
498497
registrar: &ComponentRegistrar<'_, 'a>,
499498
opctx: &'a OpContext,
@@ -505,7 +504,7 @@ fn register_decommission_sleds_step<'a>(
505504
ExecutionStepId::Remove,
506505
"Decommission sleds",
507506
move |_cx| async move {
508-
sled_state::decommission_sleds(
507+
if let Err(e) = sled_state::decommission_sleds(
509508
&opctx,
510509
datastore,
511510
blueprint
@@ -517,7 +516,10 @@ fn register_decommission_sleds_step<'a>(
517516
.map(|(&sled_id, _)| sled_id),
518517
)
519518
.await
520-
.map_err(merge_anyhow_list)?;
519+
.map_err(merge_anyhow_list)
520+
{
521+
return StepWarning::new((), e.to_string()).into();
522+
}
521523

522524
StepSuccess::new(()).into()
523525
},

0 commit comments

Comments
 (0)