mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Include bind mounts in VOLUMES check.
This commit is contained in:
parent
959d135b60
commit
4e7d766e8f
1 changed files with 2 additions and 4 deletions
|
@ -820,13 +820,11 @@ class DockerManager(object):
|
|||
continue
|
||||
|
||||
# VOLUMES
|
||||
# not including bind modes.
|
||||
|
||||
expected_volume_keys = set((image['ContainerConfig']['Volumes'] or {}).keys())
|
||||
if self.volumes:
|
||||
for key, config in self.volumes.iteritems():
|
||||
if not config and key not in self.binds:
|
||||
expected_volume_keys.add(key)
|
||||
expected_volume_keys.update(self.volumes.keys())
|
||||
|
||||
actual_volume_keys = set((container['Config']['Volumes'] or {}).keys())
|
||||
|
||||
if actual_volume_keys != expected_volume_keys:
|
||||
|
|
Loading…
Reference in a new issue