|
|
@ -224,7 +224,6 @@ def map_obj_to_ele(module, want):
|
|
|
|
SubElement(user, 'full-name').text = item['full_name']
|
|
|
|
SubElement(user, 'full-name').text = item['full_name']
|
|
|
|
|
|
|
|
|
|
|
|
if item.get('sshkey'):
|
|
|
|
if item.get('sshkey'):
|
|
|
|
if 'auth' not in locals():
|
|
|
|
|
|
|
|
auth = SubElement(user, 'authentication')
|
|
|
|
auth = SubElement(user, 'authentication')
|
|
|
|
if 'ssh-rsa' in item['sshkey']:
|
|
|
|
if 'ssh-rsa' in item['sshkey']:
|
|
|
|
ssh_rsa = SubElement(auth, 'ssh-rsa')
|
|
|
|
ssh_rsa = SubElement(auth, 'ssh-rsa')
|
|
|
@ -237,7 +236,6 @@ def map_obj_to_ele(module, want):
|
|
|
|
key = SubElement(ssh_rsa, 'name').text = item['sshkey']
|
|
|
|
key = SubElement(ssh_rsa, 'name').text = item['sshkey']
|
|
|
|
|
|
|
|
|
|
|
|
if item.get('encrypted_password'):
|
|
|
|
if item.get('encrypted_password'):
|
|
|
|
if 'auth' not in locals():
|
|
|
|
|
|
|
|
auth = SubElement(user, 'authentication')
|
|
|
|
auth = SubElement(user, 'authentication')
|
|
|
|
SubElement(auth, 'encrypted-password').text = item['encrypted_password']
|
|
|
|
SubElement(auth, 'encrypted-password').text = item['encrypted_password']
|
|
|
|
|
|
|
|
|
|
|
|