-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
docker_container: add device_requests option #1119
docker_container: add device_requests option #1119
Conversation
CC @ei-grad @ssidorenko @mbigras @pete0emerson @Samh57 @xywsxp @tizz98 @bingzhangdai @pommedeterresautee since you all liked ansible/ansible#65748 or ansible/ansible#65748 (comment). Please test this, since I don't really have the ability to do so, and I guess you have :) |
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.
Would be also good to have:
- examples for new options
check_mode: yes
in the tests
I've added an example. I won't add check_mode tests for this option, since we don't do it for any other option either, as it would put a too large strain on CI resources. The docker_container tests are one of the most extensive tests already (over 650 tests) and run for 5-7 minutes (not counting setup). Also, the way the module is implemented makes additional check_mode tests for every option superfluous :) |
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 fragment, example, and tests LGTM:)
* docker_container: add device_requests option. * Fix copy'n'paste mistake. * Fix failure test. * Added example. * Adjust tense. (cherry picked from commit 8670eff)
* docker_container: add device_requests option. * Fix copy'n'paste mistake. * Fix failure test. * Added example. * Adjust tense. (cherry picked from commit 8670eff) Co-authored-by: Felix Fontein <[email protected]>
SUMMARY
Fixes ansible/ansible#65748.
Unfortunately it is hard to test this in CI, since we don't have special hardware and docker runtimes installed. The tests are therefore very minimalistic and don't really test something.
ISSUE TYPE
COMPONENT NAME
docker_container