From 0df1b01cb23a9e4e4bfdd48aefe82f3cc4ff4751 Mon Sep 17 00:00:00 2001 From: Ryan Walls Date: Wed, 27 May 2015 12:33:11 -0600 Subject: [PATCH] Update docker module to look at log_driver variable when deciding if container configuration has changed. --- lib/ansible/modules/cloud/docker/docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/docker/docker.py b/lib/ansible/modules/cloud/docker/docker.py index c37ce3d54a..c060c83637 100644 --- a/lib/ansible/modules/cloud/docker/docker.py +++ b/lib/ansible/modules/cloud/docker/docker.py @@ -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)