Skip to content

Commit

Permalink
Merge pull request #1139 from fedora-infra/fix-build-without-release
Browse files Browse the repository at this point in the history
Skip builds that are not assigned to a release
  • Loading branch information
jeremycline committed Jan 18, 2017
2 parents 64828f9 + 0981e62 commit e749aab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bodhi/server/consumers/signed.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ def consume(self, message):
log.info("Build was not submitted, skipping")
return

if not build.release:
log.info('Build is not assigned to release, skipping')
return

if build.release.pending_testing_tag != tag:
log.info("Tag is not pending_testing tag, skipping")
return
Expand Down

0 comments on commit e749aab

Please sign in to comment.