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 66
77use  super :: MgsUpdateStatus ; 
88use  super :: MgsUpdateStatusError ; 
9+ use  gateway_client:: types:: SpType ; 
910use  nexus_types:: deployment:: BlueprintArtifactVersion ; 
1011use  nexus_types:: deployment:: BlueprintHostPhase2DesiredContents ; 
1112use  nexus_types:: deployment:: PendingMgsUpdate ; 
@@ -230,6 +231,16 @@ pub(super) fn try_make_update(
230231        ) ; 
231232        return  None ; 
232233    } ; 
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+ 
233244    let  Some ( sled_agent)  = inventory. sled_agents . iter ( ) . find ( |sled_agent| { 
234245        sled_agent. baseboard_id . as_ref ( )  == Some ( baseboard_id) 
235246    } )  else  { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments