Fix incorrect var name for api_version
This commit is contained in:
parent
613fe54908
commit
b43f236b05
1 changed files with 1 additions and 1 deletions
|
@ -1012,7 +1012,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']
|
||||
|
|
Loading…
Reference in a new issue