From 8362a5d9ce67fd5d6447ba8d0337ae9c3c2ccf84 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Tue, 7 Jan 2025 18:59:57 +0100 Subject: [PATCH] frontend: fix /build/source-chroot/ endpoint 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? --- frontend/coprs_frontend/coprs/views/apiv3_ns/apiv3_builds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/coprs_frontend/coprs/views/apiv3_ns/apiv3_builds.py b/frontend/coprs_frontend/coprs/views/apiv3_ns/apiv3_builds.py index dc1cad0f1..889228159 100644 --- a/frontend/coprs_frontend/coprs/views/apiv3_ns/apiv3_builds.py +++ b/frontend/coprs_frontend/coprs/views/apiv3_ns/apiv3_builds.py @@ -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/") +@apiv3_builds_ns.route("/source-chroot/") class SourceChroot(Resource): @apiv3_builds_ns.doc(params=get_build_docs) @apiv3_builds_ns.marshal_with(source_chroot_model)