Use proper HostConfig element which contians the proper Memory value - fixes #1766
This commit is contained in:
parent
9e47219b96
commit
b0b1566b89
1 changed files with 1 additions and 1 deletions
|
@ -1008,7 +1008,7 @@ class DockerManager(object):
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
self.module.fail_json(msg=str(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:
|
if expected_mem and actual_mem != expected_mem:
|
||||||
self.reload_reasons.append('memory ({0} => {1})'.format(actual_mem, expected_mem))
|
self.reload_reasons.append('memory ({0} => {1})'.format(actual_mem, expected_mem))
|
||||||
|
|
Loading…
Reference in a new issue