From 119acc1afeb88b8b9a31f04b5c9a479c792ac964 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Mon, 16 Sep 2019 14:06:11 -0400 Subject: [PATCH] Remove unused variable for junos_user (#62311) This isn't used any place, lets remove it to fix lint checks on our network collections. Signed-off-by: Paul Belanger --- lib/ansible/modules/network/junos/junos_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/junos/junos_user.py b/lib/ansible/modules/network/junos/junos_user.py index 697cbc4af62..8a6356e4e9f 100644 --- a/lib/ansible/modules/network/junos/junos_user.py +++ b/lib/ansible/modules/network/junos/junos_user.py @@ -233,7 +233,7 @@ def map_obj_to_ele(module, want): ssh_rsa = SubElement(auth, 'ssh-ecdsa') elif 'ssh-ed25519' in item['sshkey']: ssh_rsa = SubElement(auth, 'ssh-ed25519') - key = SubElement(ssh_rsa, 'name').text = item['sshkey'] + SubElement(ssh_rsa, 'name').text = item['sshkey'] if item.get('encrypted_password'): auth = SubElement(user, 'authentication')