Do not leak login_password when using verbose, with no_log

This commit is contained in:
Michael Scherer 2016-10-16 17:01:09 +02:00 committed by Matt Clay
parent 88e940a3e1
commit 573958bd53
2 changed files with 2 additions and 2 deletions

View file

@ -118,7 +118,7 @@ def main():
module = AnsibleModule( module = AnsibleModule(
argument_spec=dict( argument_spec=dict(
login_user=dict(default="postgres"), login_user=dict(default="postgres"),
login_password=dict(default=""), login_password=dict(default="", no_log=True),
login_host=dict(default=""), login_host=dict(default=""),
port=dict(default="5432"), port=dict(default="5432"),
db=dict(required=True), db=dict(required=True),

View file

@ -184,7 +184,7 @@ def main():
module = AnsibleModule( module = AnsibleModule(
argument_spec=dict( argument_spec=dict(
login_user=dict(default="postgres"), login_user=dict(default="postgres"),
login_password=dict(default=""), login_password=dict(default="", no_log=True),
login_host=dict(default=""), login_host=dict(default=""),
db=dict(required=True), db=dict(required=True),
port=dict(default='5432'), port=dict(default='5432'),