Skip to content

Commit

Permalink
packaging: add debug for build_complete query check
Browse files Browse the repository at this point in the history
Signed-off-by: Kyr Shatskyy <[email protected]>
  • Loading branch information
Kyr Shatskyy committed Apr 21, 2021
1 parent dce3594 commit aa89a2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions teuthology/packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,8 @@ def build_complete(self):
)
build_url = urljoin(self.query_url, path)

log.debug(f'Check build complete for results: {search_result}')
log.debug(f'Querying {build_url}...')
try:
resp = requests.get(build_url)
resp.raise_for_status()
Expand All @@ -1003,6 +1005,7 @@ def build_complete(self):
build['flavor'] == search_result['flavor'] and
build['distro_arch'] in search_result['archs']
):
log.debug(f'Matched build: {build}')
return build['status'] == 'completed'
return False

Expand Down

0 comments on commit aa89a2d

Please sign in to comment.