-
Notifications
You must be signed in to change notification settings - Fork 221
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
Shell.pm: add iLO support #1468
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.
As discussed on IRC, we don't have access to iLO interfaces on the upstream side, so I can't responsibly commit to maintaining support long-term.
Therefore this module would be best to be maintained outside core in its own repo. Ideally it could also be published to CPAN as a standard Perl distribution. Feel free to reach out to us if there are any questions around that.
The mapping part between the shell name and the corresponding module can (and should) go into core for now. If there's a more generic solution to handle that mapping, I believe that would be highly interesting as a separate issue/PR.
0ed1472
to
ad6ff61
Compare
Thank you for the feedback. I have updated this PR to only include the mapping and created a git repository to host the module here where I fixed the copyright and formatted the code with perltidy. @ferki, would you please be so kind to take a quick look at the aforementioned repository before I make a release to see if it looks good? Thank you. |
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.
Hmm, since there seems to be no explicit shell detection tests implemented yet, rsync tests are failing now (luckily! :) )
After a quick look, the shell detection is triggered around these lines in Rex::Interface::Exec::Base, and the problem looks like to be about trying to load a missing module.
Ideally, I would prefer this to be solved by trying to only load the shell modules that are known to be present.
A quick and dirty alternative could be to add error handling (and debugging messages) for the "can't load this shell module, skipping" case. But that feels like handling the error after it happened instead of preventing it from happening, and I would only depend on this if we can't do better.
What do you think, should we take this topic into a separate issue/PR (which would have been the normal workflow anyway :) ) ?
EDIT: basically the same goes for the other repo/PR #1469 too.
Based on a quick look, my first thoughts dumped:
Basically the same goes for the other repo/PR #1469 too. |
As briefly discussed via IRC earlier, I'm closing this one in favor of discussing a more complete solution via #1481. |
This PR is an attempt to fix # by .
Checklist