Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Don't constrain bundle build search by basis event
Browse files Browse the repository at this point in the history
  • Loading branch information
vfreex committed Sep 1, 2021
1 parent 755f598 commit 8dba7b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doozerlib/olm/bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def find_bundle_for(self, operator_build: Union[str, dict]) -> str:

prefix = f"{self.bundle_brew_component}-{self.operator_dict['version']}.{self.operator_dict['release']}-"
bundle_package_id = self.brew_session.getPackageID(self.bundle_brew_component, strict=True)
builds = self.brew_session.listBuilds(packageID=bundle_package_id, pattern=prefix + "*", state=brew.BuildStates.COMPLETE.value, queryOpts={'limit': 1, 'order': '-creation_event_id'})
builds = self.brew_session.listBuilds(packageID=bundle_package_id, pattern=prefix + "*", state=brew.BuildStates.COMPLETE.value,
queryOpts={'limit': 1, 'order': '-creation_event_id'}, completeBefore=None)
return builds[0]['nvr'] if builds else None

def get_latest_bundle_build(self):
Expand Down

0 comments on commit 8dba7b0

Please sign in to comment.