Fix cElementTree TypeError: cannot serialize
This commit is contained in:
parent
36c627651e
commit
76fbf3ac83
1 changed files with 2 additions and 2 deletions
|
@ -931,10 +931,10 @@ def passwords_xml():
|
|||
if skip_find:
|
||||
# Server not found, add it.
|
||||
path = etree.SubElement(root, 'path')
|
||||
etree.SubElement(path, 'from', attrib={'pathversion': "1"}).text = \
|
||||
etree.SubElement(path, 'from', {'pathversion': "1"}).text = \
|
||||
"smb://%s/" % server
|
||||
topath = "smb://%s:%s@%s/" % (user, password, server)
|
||||
etree.SubElement(path, 'to', attrib={'pathversion': "1"}).text = topath
|
||||
etree.SubElement(path, 'to', {'pathversion': "1"}).text = topath
|
||||
|
||||
# Add credentials
|
||||
settings('networkCreds', value="%s" % server)
|
||||
|
|
Loading…
Reference in a new issue