From ea548bbef55fb63173ccec4f9d4db46f976eaaea Mon Sep 17 00:00:00 2001 From: Nilashish Chakraborty Date: Thu, 12 Sep 2019 16:08:40 +0530 Subject: [PATCH] Set no_log to True for junos_user encrypted_password (#62184) Signed-off-by: NilashishC (cherry picked from commit 4e6270750a748ae854481e157821f51eda36ded0) Add changelog for junos_user encrypted_password no_log=True Signed-off-by: NilashishC --- .../fragments/62184-junos_user_encrypted_password_fix.yaml | 2 ++ lib/ansible/modules/network/junos/junos_user.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/62184-junos_user_encrypted_password_fix.yaml diff --git a/changelogs/fragments/62184-junos_user_encrypted_password_fix.yaml b/changelogs/fragments/62184-junos_user_encrypted_password_fix.yaml new file mode 100644 index 00000000000..f683bf98a6f --- /dev/null +++ b/changelogs/fragments/62184-junos_user_encrypted_password_fix.yaml @@ -0,0 +1,2 @@ +bugfixes: + - junos_user - Add no_log=True to junos_user `encrypted_password` (https://github.com/ansible/ansible/pull/62184) diff --git a/lib/ansible/modules/network/junos/junos_user.py b/lib/ansible/modules/network/junos/junos_user.py index aaef0faf6fa..1c9c3ed2ac6 100644 --- a/lib/ansible/modules/network/junos/junos_user.py +++ b/lib/ansible/modules/network/junos/junos_user.py @@ -314,7 +314,7 @@ def main(): name=dict(), full_name=dict(), role=dict(choices=ROLES), - encrypted_password=dict(), + encrypted_password=dict(no_log=True), sshkey=dict(), state=dict(choices=['present', 'absent'], default='present'), active=dict(type='bool', default=True)