From b0b1566b8934988c5ba725f34a8744c2092c765a Mon Sep 17 00:00:00 2001 From: Micheal Waltz Date: Tue, 21 Jul 2015 12:58:58 -0700 Subject: [PATCH] Use proper HostConfig element which contians the proper Memory value - fixes #1766 --- cloud/docker/docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/docker/docker.py b/cloud/docker/docker.py index e77951abf49..f8532659ecf 100644 --- a/cloud/docker/docker.py +++ b/cloud/docker/docker.py @@ -1008,7 +1008,7 @@ class DockerManager(object): except ValueError as e: self.module.fail_json(msg=str(e)) - actual_mem = container['Config']['Memory'] + actual_mem = container['HostConfig']['Memory'] if expected_mem and actual_mem != expected_mem: self.reload_reasons.append('memory ({0} => {1})'.format(actual_mem, expected_mem))