Merge pull request #1830 from ecliptik/devel

Fix incorrect var name for api_version
This commit is contained in:
Brian Coca 2015-07-28 18:25:20 -04:00
commit 49400d90ac

View file

@ -1035,7 +1035,7 @@ class DockerManager(object):
self.module.fail_json(msg=str(e))
#For v1.19 API and above use HostConfig, otherwise use Config
if docker_api_version >= 1.19:
if api_version >= 1.19:
actual_mem = container['HostConfig']['Memory']
else:
actual_mem = container['Config']['Memory']