Skip to content

Commit 858ff6f

Browse files
authored
Merge pull request #675 from ajinkyadg/patch-1
Bug fix rdpmanager.py
2 parents 2c88a38 + 0b760de commit 858ff6f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Windows/lazagne/softwares/sysadmin/rdpmanager.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ def parse_element(self, root, element):
4646
try:
4747
for r in root.findall(element):
4848
values = {}
49-
for child in r.getchildren():
49+
for child in list(r):
5050
if child.tag == 'properties':
51-
for c in child.getchildren():
51+
for c in list(child):
5252
values = self.check_tag_content(values, c)
5353
elif child.tag == 'logonCredentials':
54-
for c in child.getchildren():
54+
for c in list(child):
5555
values = self.check_tag_content(values, c)
5656
else:
5757
values = self.check_tag_content(values, child)
@@ -125,3 +125,4 @@ def parse_xml(self, xml_file):
125125
print(f"host: {host}, Username: {username}, Password: {password}")
126126
res += [{'URL': host, 'Login': username, 'Password': password}]
127127
return res
128+

0 commit comments

Comments
 (0)