Update docker module to look at log_driver variable when deciding if container configuration has changed.
This commit is contained in:
parent
3f679933a6
commit
5f1d88a829
1 changed files with 1 additions and 1 deletions
|
@ -1129,7 +1129,7 @@ class DockerManager(object):
|
||||||
# LOG_DRIVER
|
# LOG_DRIVER
|
||||||
|
|
||||||
expected_log_driver = set(self.module.params.get('log_driver') or [])
|
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:
|
if actual_log_driver != expected_log_driver:
|
||||||
self.reload_reasons.append('log_driver ({0} => {1})'.format(actual_log_driver, expected_log_driver))
|
self.reload_reasons.append('log_driver ({0} => {1})'.format(actual_log_driver, expected_log_driver))
|
||||||
differing.append(container)
|
differing.append(container)
|
||||||
|
|
Loading…
Reference in a new issue