Skip to content

Commit

Permalink
frontend: fix /build/source-chroot/ endpoint
Browse files Browse the repository at this point in the history
As reported by @nforro, this tracebacks because of not existing endpoint.

    from copr.v3 import Client as CoprClient
    copr_client = CoprClient.create_from_config_file()
    copr_client.build_proxy.get_source_chroot(8481944)

For some reason this endpoint was renamed from `/build/source-chroot` to
`/build/source-log` in 7455d47. I suppose it was a typo?
  • Loading branch information
FrostyX authored and praiskup committed Jan 13, 2025
1 parent 3710599 commit ff240d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def get(self, ownername, projectname, packagename=None, status=None, **kwargs):
return {"items": builds, "meta": paginator.meta}


@apiv3_builds_ns.route("/source-log/<int:build_id>")
@apiv3_builds_ns.route("/source-chroot/<int:build_id>")
class SourceChroot(Resource):
@apiv3_builds_ns.doc(params=get_build_docs)
@apiv3_builds_ns.marshal_with(source_chroot_model)
Expand Down

0 comments on commit ff240d3

Please sign in to comment.