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 committed by Matt Clay
parent 3419a1e253
commit 0df1b01cb2

View file

@ -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)