From 5331cb1134b4cb2fd42cd1b53ffd32b378ea7415 Mon Sep 17 00:00:00 2001 From: Ozan Unsal Date: Mar 29 2022 07:29:23 +0000 Subject: Return empty value for results_repourl and results_repofile for raw_config composes results_repofile_url is already returning empty value for raw_config_composes. Therefore the results_repourl field is updated. Jira: RHELCMP-120 Signed-off-by: Ozan Unsal --- diff --git a/server/odcs/server/models.py b/server/odcs/server/models.py index 59e9f48..56826d8 100644 --- a/server/odcs/server/models.py +++ b/server/odcs/server/models.py @@ -361,6 +361,10 @@ class Compose(ODCSBase): if not self.on_default_target_dir: return "" + # There is no repo url for Raw config composes. + if self.source_type == PungiSourceType.RAW_CONFIG: + return "" + return ( conf.target_dir_url + "/" + os.path.join(self.name, "compose", "Temporary") )