Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oem_list = None
- if options.customer_filter:
- # cache this list so we're not fetching something huge
- # everytime in the loop
- oem = lp.people['canonical']
- oem_list = list(oem.members_details)
- ...
- if options.customer_filter is False:
- tags = update_tags(tags, options.update_from, options.update_to)
- bug_updated = True
- else:
- # Everyone outside of this set should be an OEM customer
- assignee = task.assignee_link
- print "id %s assigned to %s" % (bug.id, assignee)
- if assignee is None or assignee not in oem_list:
- tags = update_tags(tags, options.update_from, options.update_to)
- bug_updated = True
- else:
- bug_updated = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement