From d6f8f697fe24357031a299cb893898f209f69f41 Mon Sep 17 00:00:00 2001 From: "wu.chunyang" Date: Wed, 25 Jul 2018 07:54:40 +0000 Subject: [PATCH] Add check to ansible argument_spec module_name is required for kolla_toolbox,but this module does not check this argument. Change-Id: Iae256c0690b408a040b4e0b079525d3dab917e90 --- ansible/library/kolla_toolbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/library/kolla_toolbox.py b/ansible/library/kolla_toolbox.py index 3f0acb808d..5a4702d688 100644 --- a/ansible/library/kolla_toolbox.py +++ b/ansible/library/kolla_toolbox.py @@ -120,7 +120,7 @@ def get_docker_client(): def main(): specs = dict( - module_name=dict(type='str'), + module_name=dict(required=True, type='str'), module_args=dict(type='str'), module_extra_vars=dict(type='json'), api_version=dict(required=False, type='str', default='auto'),