1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-10-04 00:29:19 +02:00

fix set maintainer (fixes issue #452)

This commit is contained in:
lethliel
2018-10-17 09:43:17 +02:00
parent aba25d94cb
commit a9fc04d996

View File

@@ -6894,7 +6894,7 @@ def addPerson(apiurl, prj, pac, user, role="maintainer"):
create_new=False)
if data and get_user_meta(apiurl, user) != None:
root = ET.fromstring(''.join(data))
root = ET.fromstring(b''.join(data))
found = False
for person in root.getiterator('person'):
if person.get('userid') == user and person.get('role') == role: