check_source: load target project config during check_action_delete().

Otherwise, causes fatal crash trying to access self.repo_checker.
This commit is contained in:
Jimmy Berry 2018-01-03 20:01:12 -06:00
parent 98a659c3fa
commit b8f9fb6853

View File

@ -218,6 +218,8 @@ class CheckSource(ReviewBot.ReviewBot):
return False
def check_action_delete(self, request, action):
self.target_project_config(action.tgt_project)
if action.tgt_repository is not None:
if action.tgt_project.startswith('openSUSE:'):
self.review_messages['declined'] = 'The repositories in the openSUSE:* namespace ' \