Remove unused variable for junos_user (#62311)

This isn't used any place, lets remove it to fix lint checks on our
network collections.

(cherry picked from commit 119acc1afe)
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
pull/64756/head
Paul Belanger 5 years ago committed by Matt Clay
parent e38f74159d
commit 362a8ffd8c

@ -0,0 +1,2 @@
bugfixes:
- Remove unused variable in junos_user to fix flake8 failure.

@ -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')

Loading…
Cancel
Save