From 180977a727d8e6ce694428d025d9b2b672739ce9 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 13 Oct 2016 22:30:02 +0200 Subject: [PATCH] Do not leak api_key or root password in log (#5201) --- lib/ansible/modules/cloud/linode/linode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/linode/linode.py b/lib/ansible/modules/cloud/linode/linode.py index 022dc231bf4..079feea39f1 100644 --- a/lib/ansible/modules/cloud/linode/linode.py +++ b/lib/ansible/modules/cloud/linode/linode.py @@ -443,14 +443,14 @@ def main(): state = dict(default='present', choices=['active', 'present', 'started', 'deleted', 'absent', 'stopped', 'restarted']), - api_key = dict(), + api_key = dict(no_log=True), name = dict(type='str'), plan = dict(type='int'), distribution = dict(type='int'), datacenter = dict(type='int'), linode_id = dict(type='int', aliases=['lid']), payment_term = dict(type='int', default=1, choices=[1, 12, 24]), - password = dict(type='str'), + password = dict(type='str', no_log=True), ssh_pub_key = dict(type='str'), swap = dict(type='int', default=512), wait = dict(type='bool', default=True),