Skip to content
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

Add OEM field for ComputerSystem #348

Merged

Conversation

lukassup
Copy link
Contributor

I'd like to add ComputerSystem.OEM field as HPE and Dell provide it.

It's not part of the Redfish API schema so not sure if this is the right way to do it.

Copy link
Owner

@stmcginnis stmcginnis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks good. You then should be able to follow the pattern used for the event service to transform a standard ComputerSystem to an OEM one. That can happen either here in the oem/ folder, or you can define your own local structs. Or just directly access the data out of the OEM field, of course.

@stmcginnis stmcginnis merged commit ef89746 into stmcginnis:main Jun 11, 2024
2 checks passed
@lukassup
Copy link
Contributor Author

Thanks, that was quick!

I can see that in this repo the structs are generated from Redfish schema. I'm thinking whether the newly generated structs won't clear this field and how to preserve it from being overridden?

@lukassup lukassup deleted the feat/redfish-computersystem-field-oem branch June 12, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants