mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update docker module to look at log_driver variable when deciding if container configuration has changed.
This commit is contained in:
parent
3419a1e253
commit
0df1b01cb2
1 changed files with 1 additions and 1 deletions
|
@ -1138,7 +1138,7 @@ class DockerManager(object):
|
|||
# LOG_DRIVER
|
||||
|
||||
expected_log_driver = set(self.module.params.get('log_driver') or [])
|
||||
actual_log_driver = set(container['HostConfig']['LogConfig'] or [])
|
||||
actual_log_driver = set(container['HostConfig']['LogConfig']['Type'] or [])
|
||||
if actual_log_driver != expected_log_driver:
|
||||
self.reload_reasons.append('log_driver ({0} => {1})'.format(actual_log_driver, expected_log_driver))
|
||||
differing.append(container)
|
||||
|
|
Loading…
Reference in a new issue