mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 08:43:10 +00:00
Use proper HostConfig element which contians the proper Memory value - fixes #1766
This commit is contained in:
@@ -1036,7 +1036,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))
|
||||
|
||||
Reference in New Issue
Block a user