mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 22:00:22 -07:00
Fix incorrect var name for api_version
This commit is contained in:
parent
05974273b3
commit
5f0d989973
1 changed files with 1 additions and 1 deletions
|
@ -1041,7 +1041,7 @@ class DockerManager(object):
|
||||||
self.module.fail_json(msg=str(e))
|
self.module.fail_json(msg=str(e))
|
||||||
|
|
||||||
#For v1.19 API and above use HostConfig, otherwise use Config
|
#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']
|
actual_mem = container['HostConfig']['Memory']
|
||||||
else:
|
else:
|
||||||
actual_mem = container['Config']['Memory']
|
actual_mem = container['Config']['Memory']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue