Skip to content

Commit

Permalink
CASMHMS-6140: Parse Managers .Actions correctly for Gigabyte and Para…
Browse files Browse the repository at this point in the history
…dise platforms during discovery
  • Loading branch information
jwlv committed Jul 16, 2024
1 parent 970d121 commit 8d05c5d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.26.0
2.28.0
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.28.0] - 2024-07-18

### Fixed

- Parse Managers .Actions correctly for Gigabyte and Paradise platforms during discovery

## [2.26.0] - 2024-06-17

### Fixed
Expand Down
19 changes: 19 additions & 0 deletions pkg/redfish/rfcomponents.go
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,25 @@ func (m *EpManager) discoverRemotePhase1() {
m.ManagedSystems = m.ManagerRF.Links.ManagerForServers
if m.ManagerRF.Actions != nil {
m.Actions = m.ManagerRF.Actions
mr := m.Actions.ManagerReset
if mr.RFActionInfo != "" {
actionInfoJSON, err := m.epRF.GETRelative(mr.RFActionInfo)
if err != nil || actionInfoJSON == nil {
m.LastStatus = HTTPsGetFailed
return
}
var actionInfo ResetActionInfo
err = json.Unmarshal(actionInfoJSON, &actionInfo)
if err != nil {
errlog.Printf("Failed to decode %s: %s\n", url, err)
m.LastStatus = EPResponseFailedDecode
}
for _, p := range actionInfo.RAParameters {
if p.Name == "ResetType" {
m.Actions.ManagerReset.AllowableValues = p.AllowableValues
}
}
}
}

// Get link to Manager's ethernet interfaces
Expand Down

0 comments on commit 8d05c5d

Please sign in to comment.