From 34f6de3933975ed8bca3ff7f7418e386439994ee Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 29 2019 08:54:51 +0000 Subject: Be consistent about the PDC URL format The PDC_URL variable specified in the configuration is meant to include the API version used in other parts of the code, so be consistent about this and do not manually add it. Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure_distgit/plugin.py b/pagure_distgit/plugin.py index bd3ed07..f026063 100644 --- a/pagure_distgit/plugin.py +++ b/pagure_distgit/plugin.py @@ -103,7 +103,7 @@ def _is_active_in_pdc(name, namespace): " your pagure administrators" ) else: - pdc_url = "%s/rest_api/v1/component-branches/" % pdc_url.rstrip("/") + pdc_url = "%s/component-branches/" % pdc_url.rstrip("/") _log.debug("Based PDC url: %s", pdc_url)