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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user