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
Redfish modules: rename _facts -> _info #60992
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ready_for_review |
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.
I don't like that this leaves us with two copies of essentially the same module that must be maintained going forward. Can't this be done in a way that we have, for example, a redfish_info.py module and the redfish_facts.py module just calls the redfish_info.py module? Similar to how the cloudformation_info.py <-> cloudformation_facts.py modules are handled in #60178?
@billdodd the difference to cloudformation_info/facts is that there, the return value's name did not contain |
@billdodd so what do you prefer? There's also the possibility of renaming the module and making the return value name dependent on whether the module is called as |
@felixfontein Thanks for the details and options. I’m away from my computer today, but will review and respond tomorrow. |
My original thought was to do this option that you described:
But I didn't consider the auto-generated documentation issue you mentioned. Given that, it seems like the better option would be your option (b):
I really want to avoid having both BTW - I don't really have a preference or issue regarding whether the return value name is "redfish_facts" vs. "redfish_info". So whichever of those you think makes the most sense for Ansible in this situation is fine with me. |
Yes, that's correct. There is one copy of the module, and it handles both its names slightly differently. (And the
I would say anything but |
Sounds good!
Got it. :-) Thanks again for your help. |
Ok. I'll adjust the PR next week (probably Monday). |
0de0ae0
to
519877b
Compare
I rebased (to remove conflict) and then added a commit which changes the PR to the rename method. PTAL! |
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.
Docs portion LGTM
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.
I reviewed the changes and did a test with the old module name and the new module name. All LGTM.
Thanks @felixfontein
shipit
Great! Thanks a lot for reviewing and testing, @billdodd! |
* Rename redfish_facts -> redfish_info, idrac_redfish_facts -> idrac_redfish_info * Update porting guide. * Add changelog. * Fix metadata. * Remove copy artefacts. * Change from deprecate/new module to rename.
* Rename redfish_facts -> redfish_info, idrac_redfish_facts -> idrac_redfish_info * Update porting guide. * Add changelog. * Fix metadata. * Remove copy artefacts. * Change from deprecate/new module to rename.
SUMMARY
Fixes #60523.
ISSUE TYPE
COMPONENT NAME
redfish_facts
idrac_redfish_facts