mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix option change detection / force support for docker_volume. (#47390)
This commit is contained in:
parent
6e5233b785
commit
8ef994fbc5
2 changed files with 3 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- "docker_volume - fix ``force`` and change detection logic. If not both evaluated to ``True``, the volume was not recreated."
|
|
@ -223,7 +223,7 @@ class DockerVolumeManager(object):
|
||||||
if self.existing_volume:
|
if self.existing_volume:
|
||||||
differences = self.has_different_config()
|
differences = self.has_different_config()
|
||||||
|
|
||||||
if differences and self.parameters.force:
|
if differences or self.parameters.force:
|
||||||
self.remove_volume()
|
self.remove_volume()
|
||||||
self.existing_volume = None
|
self.existing_volume = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue