-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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: fix behavior when image is not specified #46322
Merged
gundalow
merged 4 commits into
ansible:devel
from
felixfontein:docker_container-fix-missing-image
Oct 6, 2018
Merged
docker_container: fix behavior when image is not specified #46322
gundalow
merged 4 commits into
ansible:devel
from
felixfontein:docker_container-fix-missing-image
Oct 6, 2018
+37
−26
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansibot
added
affects_2.8
This issue/PR affects Ansible v2.8
bug
This issue/PR relates to a bug.
cloud
core_review
In order to be merged, this PR must follow the core review workflow.
docker
module
This issue/PR relates to a module.
needs_triage
Needs a first human triage before being processed.
support:community
This issue/PR relates to code supported by the Ansible community.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
and removed
core_review
In order to be merged, this PR must follow the core review workflow.
labels
Sep 30, 2018
Restarting tests. |
ansibot
added
core_review
In order to be merged, this PR must follow the core review workflow.
and removed
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
labels
Sep 30, 2018
kassiansun
reviewed
Oct 4, 2018
kassiansun
approved these changes
Oct 5, 2018
shipit |
ansibot
added
shipit
This PR is ready to be merged by Core
and removed
core_review
In order to be merged, this PR must follow the core review workflow.
labels
Oct 5, 2018
evrardjp
approved these changes
Oct 5, 2018
@kassiansun @evrardjp Thanks for reviewing! |
This was referenced Oct 6, 2018
abadger
pushed a commit
that referenced
this pull request
Oct 9, 2018
* Don't simply ignore container in present() if image is not specified. * Use image from existing container for recreation if not specified. * Added changelog. * Improve comment. (cherry picked from commit 895019c)
mattclay
pushed a commit
that referenced
this pull request
Oct 16, 2018
* Don't simply ignore container in present() if image is not specified. * Use image from existing container for recreation if not specified. * Added changelog. * Improve comment. (cherry picked from commit 895019c)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.8
This issue/PR affects Ansible v2.8
bug
This issue/PR relates to a bug.
cloud
docker
module
This issue/PR relates to a module.
shipit
This PR is ready to be merged by Core
support:community
This issue/PR relates to code supported by the Ansible community.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
When
image
is not specified, but the container needs to be re-created for some reason (restart, configuration changed, etc.), currently simply nothing happens (without any user feedback). This is a consequence of #41678, which simply does not run the configuration check whenimage
is not specified.This PR replaces the change in #41678 with slightly more sophisticated code:
image
is really needed in this place.Fixes #21188, fixes #27960.
ISSUE TYPE
COMPONENT NAME
docker_container
ANSIBLE VERSION