Skip to content

Commit

Permalink
Use error_message key for Koji and Bodhi updates (#2657)
Browse files Browse the repository at this point in the history
Use error_message key for Koji and Bodhi updates

To be explicit this is something we populate from the data and not an error with getting the info from API.

Reviewed-by: Nikola Forró
  • Loading branch information
softwarefactory-project-zuul[bot] authored Nov 26, 2024
2 parents 14f2c5a + 134aa14 commit 06b426d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packit_service/service/api/bodhi_updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get(self, id):
"submitted_time": optional_timestamp(update.submitted_time),
"update_creation_time": optional_timestamp(update.update_creation_time),
"run_ids": sorted(run.id for run in update.group_of_targets.runs),
"error": update.data.get("error") if update.data else None,
"error_message": update.data.get("error") if update.data else None,
}

update_dict.update(get_project_info_from_build(update))
Expand Down
2 changes: 1 addition & 1 deletion packit_service/service/api/koji_builds.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get(self, id):
"srpm_build_id": srpm_build.id if srpm_build else None,
"run_ids": sorted(run.id for run in build.group_of_targets.runs),
"build_submission_stdout": build.build_submission_stdout,
"error": build.data.get("error") if build.data else None,
"error_message": build.data.get("error") if build.data else None,
}

build_dict.update(get_project_info_from_build(build))
Expand Down

0 comments on commit 06b426d

Please sign in to comment.