From 809aa7a65350ee51e5999e7aeed6d5d92f734f49 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 19 Jan 2017 20:23:53 +0100 Subject: [PATCH] Do not leak uri password in logs (#20427) --- lib/ansible/modules/network/basics/uri.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/basics/uri.py b/lib/ansible/modules/network/basics/uri.py index 84da897805..02ed27c74a 100644 --- a/lib/ansible/modules/network/basics/uri.py +++ b/lib/ansible/modules/network/basics/uri.py @@ -367,7 +367,7 @@ def main(): argument_spec.update(dict( dest = dict(required=False, default=None, type='path'), url_username = dict(required=False, default=None, aliases=['user']), - url_password = dict(required=False, default=None, aliases=['password']), + url_password = dict(required=False, default=None, aliases=['password'], no_log=True), body = dict(required=False, default=None, type='raw'), body_format = dict(required=False, default='raw', choices=['raw', 'json']), method = dict(required=False, default='GET', choices=['GET', 'POST', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'PATCH', 'TRACE', 'CONNECT', 'REFRESH']),