obs_clone: remove watchlist from persons

We don't want these projects
This commit is contained in:
Stephan Kulow 2019-04-20 18:02:51 +02:00
parent 64ad083d84
commit c5e7fc3570

View File

@ -158,6 +158,9 @@ def package_clone_after(apiurl_source, apiurl_target, package):
def person_sanitize(person):
person.find('email').text = person.find('email').text.split('@')[0] + '@example.com'
watchlist = person.find('watchlist')
if watchlist:
person.remove(watchlist)
def person_clone_after(apiurl_source, apiurl_target, person):
url = makeurl(apiurl_target, ['person', person.find('login').text], {'cmd': 'change_password'})