mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
docker_* modules: updating argument_spec (#48491)
* Updating argument_spec for docker_* modules. * Adjust docker_network to work with new recursive argument_spec. * Adjust device IO limits to recursive argument_spec. * Improve test (test Ansible's cast from str to int). * Adjust healthcheck options construction. * Remove superfluous check. * Make flake8 happy. * Simplify comparison.
This commit is contained in:
committed by
John R Barker
parent
feb60b947c
commit
0206a46e1d
@@ -583,7 +583,12 @@ class ImageManager(DockerBaseClass):
|
||||
def main():
|
||||
argument_spec = dict(
|
||||
archive_path=dict(type='path'),
|
||||
container_limits=dict(type='dict'),
|
||||
container_limits=dict(type='dict', options=dict(
|
||||
memory=dict(type='int'),
|
||||
memswap=dict(type='int'),
|
||||
cpushares=dict(type='int'),
|
||||
cpusetcpus=dict(type='str'),
|
||||
)),
|
||||
dockerfile=dict(type='str'),
|
||||
force=dict(type='bool', default=False),
|
||||
http_timeout=dict(type='int'),
|
||||
|
||||
Reference in New Issue
Block a user