-
Notifications
You must be signed in to change notification settings - Fork 10
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
Handle different response in storage data for redfish api #71
Handle different response in storage data for redfish api #71
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.
Non-blocking question.
Encounter this also microsoft/linux-package-repositories#130 |
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.
Thanks for the PR! This probably resolves #177, but I'm not sure about #222, #69. For those, we might have to check with the bug reporters themselves and see if the redfish API uses Controllers
there as well or if it's something else altogether to fetch the storage controller info.
#115 seems like the standard case but not sure why there's still an error.
Agree. That can be an enhancement proposal from them if they require it, or they find out more possible "keys". But at least they will not see the
Same here, they will not see |
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.
LGTM 🚀 Thanks for addressing my comments! Also, adding the extra else
block and fetching data from the dict properly to ensure there's no KeyError
related errors is a great idea.
Set the "Health" key to a string of "NA" when it's not present.
* Fix regression from #71. Set the "Health" key to a string of "NA" when it's not present. * Add unit test for missing "Health" key. Co-authored-by: Ashley James <[email protected]>
_verify_redfish_call