Ignore unknown project namespaces for the bugzilla sync
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
94e5f3f345
commit
4762042663
1 changed files with 6 additions and 0 deletions
|
@ -722,6 +722,12 @@ if __name__ == '__main__':
|
|||
print("Querying %r for EOL information." % branches_url)
|
||||
pdc_branches = session.get(branches_url, timeout=120).json()
|
||||
for proj in pagure_projects:
|
||||
if proj['namespace'] not in PDC_TYPES:
|
||||
proj['branches'] = []
|
||||
if DEBUG:
|
||||
print('! Namespace {namespace} unknown to PDC, project '
|
||||
'{namespace}/{name} ignored'.format(**proj))
|
||||
continue
|
||||
pdc_type = PDC_TYPES[proj['namespace']]
|
||||
proj['branches'] = pdc_branches.get(pdc_type, {}).get(proj['name'], [])
|
||||
if not proj['branches'] and DEBUG:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue