Update docker module to look at log_driver variable when deciding if container configuration has changed.

This commit is contained in:
Ryan Walls 2015-05-27 12:33:11 -06:00
parent 3f679933a6
commit 5f1d88a829

View file

@ -1129,7 +1129,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)