Fix option change detection / force support for docker_volume. (#47390)

pull/47282/head
Felix Fontein 7 years ago committed by Toshio Kuratomi
parent 816eee2c1e
commit 1d60d34b82

@ -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:
differences = self.has_different_config()
if differences and self.parameters.force:
if differences or self.parameters.force:
self.remove_volume()
self.existing_volume = None

Loading…
Cancel
Save