File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
nexus/reconfigurator/execution/src Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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
497496fn 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 } ,
You can’t perform that action at this time.
0 commit comments