From 2d424ffb142401cdeeaf604e0e8ea4b67907b09e Mon Sep 17 00:00:00 2001 From: Bertrand Lallau Date: Thu, 13 Jul 2017 22:25:19 +0200 Subject: [PATCH] Remove warning during kolla_docker execution Ansible check if modules parameters are named like %password% and allow to hidden log param in this case. This requires adding "no_log" parameters. This patch just add "no_log" param in order to avoid this warning. Change-Id: I9c1df1093e0fd101090292d6e8bf3527f99aeb17 Closes-Bug: #1702244 --- ansible/library/kolla_docker.py | 2 +- tests/test_kolla_docker.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/library/kolla_docker.py b/ansible/library/kolla_docker.py index 5ed25617b7..e6889c216f 100644 --- a/ansible/library/kolla_docker.py +++ b/ansible/library/kolla_docker.py @@ -710,7 +710,7 @@ def generate_module(): 'stop_container']), api_version=dict(required=False, type='str', default='auto'), auth_email=dict(required=False, type='str'), - auth_password=dict(required=False, type='str'), + auth_password=dict(required=False, type='str', no_log=True), auth_registry=dict(required=False, type='str'), auth_username=dict(required=False, type='str'), detach=dict(required=False, type='bool', default=True), diff --git a/tests/test_kolla_docker.py b/tests/test_kolla_docker.py index cc5f23edaf..e6e84bf728 100644 --- a/tests/test_kolla_docker.py +++ b/tests/test_kolla_docker.py @@ -52,7 +52,7 @@ class ModuleArgsTest(base.BaseTestCase): 'stop_container']), api_version=dict(required=False, type='str', default='auto'), auth_email=dict(required=False, type='str'), - auth_password=dict(required=False, type='str'), + auth_password=dict(required=False, type='str', no_log=True), auth_registry=dict(required=False, type='str'), auth_username=dict(required=False, type='str'), detach=dict(required=False, type='bool', default=True),