-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix redfish_facts Storage command GetStorageControllerInventory - SimpleStorage not found #52928
Fix redfish_facts Storage command GetStorageControllerInventory - SimpleStorage not found #52928
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The GetStorageControllerInventory changes look good.
But I also see the PSU changes from one of your other PRs. A git flow issue?
866bc6e
to
9f10420
Compare
@billdodd yep, fixed here :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looked good to me and I tested against the DMTF localstorage mockup.
shipit
Thank you for your patch @xmadsen. Looks good. shipit |
Asked Core Team yesterday in IRC to merge but no luck, will try again today. |
@xmadsen Thank you for the bug fix Merged into |
SUMMARY
This pull request allows the redfish_facts Systems command GetStorageControllerInventory to work as intended, replacing its references to the deprecated
SimpleStorage
resource, and instead searching through theStorage
resource to find storage controller details.The code now loops through each
Storage
resource'sMembers
list, and loops through eachMember
'sStorageControllers
list, returning eachStorageController
and its properties as list elements ofentries
in the module output.If the Storage resource is not found, a
ret: False
is returned along with a message stating as much.Fixes half of #51286 , the other half is fixed by #52939
ISSUE TYPE
COMPONENT NAME
redfish_utils
redfish_facts
ADDITIONAL INFORMATION
Before:
After: