mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
fix: added another check for power
This commit is contained in:
parent
ffe5132d8e
commit
8fb8908883
1 changed files with 7 additions and 6 deletions
|
|
@ -294,14 +294,15 @@ func walkSystems(rf_systems []*redfish.ComputerSystem, rf_chassis *redfish.Chass
|
|||
if err != nil {
|
||||
log.Warn().Err(err).Str("id", rf_computersystem.ID).
|
||||
Str("system", rf_computersystem.Name).Msg("failed to get power-related details from chassis")
|
||||
}
|
||||
|
||||
} else {
|
||||
// extract the power control odata.id resource
|
||||
powercontrolIDs := []string{}
|
||||
if power != nil {
|
||||
for _, rf_powercontrol := range power.PowerControl {
|
||||
powercontrolIDs = append(powercontrolIDs, rf_powercontrol.ODataID)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// convert supported reset types to []string
|
||||
actions := []string{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue