Skip to content

Commit

Permalink
Use error_message key for Koji and Bodhi updates API
Browse files Browse the repository at this point in the history
To be explicit this is something we populate from the data and not an error
with getting the info from API.
  • Loading branch information
lbarcziova committed Nov 26, 2024
1 parent 14f2c5a commit 134aa14
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 134aa14

Please sign in to comment.