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

reviewable/pr18780/r1
Ryan Walls 10 years ago
parent 3f679933a6
commit 5f1d88a829

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

Loading…
Cancel
Save