From dc51e1ae41c4a4898555866784fc543147f25368 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 20 Oct 2015 15:34:50 -0700 Subject: [PATCH] Mark a few parameters as no_log --- system/user.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/system/user.py b/system/user.py index c2e4956f897..c04b748f068 100755 --- a/system/user.py +++ b/system/user.py @@ -2045,7 +2045,7 @@ def main(): comment=dict(default=None, type='str'), home=dict(default=None, type='str'), shell=dict(default=None, type='str'), - password=dict(default=None, type='str'), + password=dict(default=None, type='str', no_log=True), login_class=dict(default=None, type='str'), # following options are specific to userdel force=dict(default='no', type='bool'), @@ -2063,7 +2063,7 @@ def main(): ssh_key_type=dict(default=ssh_defaults['type'], type='str'), ssh_key_file=dict(default=None, type='str'), ssh_key_comment=dict(default=ssh_defaults['comment'], type='str'), - ssh_key_passphrase=dict(default=None, type='str'), + ssh_key_passphrase=dict(default=None, type='str', no_log=True), update_password=dict(default='always',choices=['always','on_create'],type='str'), expires=dict(default=None, type='float'), ), @@ -2161,4 +2161,5 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() +if __name__ == '__main__': + main()