Skip to content

Commit

Permalink
fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed Aug 30, 2019
1 parent cc6ce23 commit 5706c25
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Windows/lazagne/softwares/sysadmin/filezillaserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,21 @@ def run(self):
if os.path.exists(xml_file):
tree = ElementTree(file=xml_file)
root = tree.getroot()
host = port = password = None

for item in root.iter("Item"):
if item.attrib['name'] == 'Last Server Address':
host = item.text
host = item.text
elif item.attrib['name'] == 'Last Server Port':
port = item.text
port = item.text
elif item.attrib['name'] == 'Last Server Password':
password = item.text
password = item.text
# if all((host, port, login)) does not work
if host is not None and port is not None and password is not None:
values = {
pwd_found = [{
'Host': host,
'Port': port,
'Password': password,
}
}]

if values:
pwd_found.append(values)

return pwd_found
return pwd_found

0 comments on commit 5706c25

Please sign in to comment.