File tree Expand file tree Collapse file tree 3 files changed +444
-137
lines changed
nexus/reconfigurator/planning/src/mgs_updates Expand file tree Collapse file tree 3 files changed +444
-137
lines changed Original file line number Diff line number Diff line change 6
6
7
7
use super :: MgsUpdateStatus ;
8
8
use super :: MgsUpdateStatusError ;
9
+ use gateway_client:: types:: SpType ;
9
10
use nexus_types:: deployment:: BlueprintArtifactVersion ;
10
11
use nexus_types:: deployment:: BlueprintHostPhase2DesiredContents ;
11
12
use nexus_types:: deployment:: PendingMgsUpdate ;
@@ -230,6 +231,16 @@ pub(super) fn try_make_update(
230
231
) ;
231
232
return None ;
232
233
} ;
234
+
235
+ // Only configure host OS updates for sleds.
236
+ //
237
+ // We don't bother logging a return value of `None` for non-sleds, because
238
+ // we will never attempt to configure an update for them (nor should we).
239
+ match sp_info. sp_type {
240
+ SpType :: Sled => ( ) ,
241
+ SpType :: Power | SpType :: Switch => return None ,
242
+ }
243
+
233
244
let Some ( sled_agent) = inventory. sled_agents . iter ( ) . find ( |sled_agent| {
234
245
sled_agent. baseboard_id . as_ref ( ) == Some ( baseboard_id)
235
246
} ) else {
You can’t perform that action at this time.
0 commit comments