From 0c3b6e22f9580c57d20bce9343422d0875fb39aa Mon Sep 17 00:00:00 2001 From: Lubomír Sedlář Date: Mar 14 2023 09:51:34 +0000 Subject: Pass parent id/respin id to CTS When the --target-dir option is used, the compose can be created in CTS, but the parent and respin information is not passed through. That leads to data missing later on. JIRA: RHELCMP-11411 Signed-off-by: Lubomír Sedlář --- diff --git a/pungi/compose.py b/pungi/compose.py index fa59d27..ab1d479 100644 --- a/pungi/compose.py +++ b/pungi/compose.py @@ -199,11 +199,19 @@ def get_compose_dir( compose_respin=None, compose_label=None, already_exists_callbacks=None, + parent_compose_ids=None, + respin_of=None, ): already_exists_callbacks = already_exists_callbacks or [] ci = get_compose_info( - conf, compose_type, compose_date, compose_respin, compose_label + conf, + compose_type, + compose_date, + compose_respin, + compose_label, + parent_compose_ids, + respin_of, ) cts_url = conf.get("cts_url", None) diff --git a/pungi/scripts/pungi_koji.py b/pungi/scripts/pungi_koji.py index cf8a7f4..5281852 100644 --- a/pungi/scripts/pungi_koji.py +++ b/pungi/scripts/pungi_koji.py @@ -300,7 +300,12 @@ def main(): if opts.target_dir: compose_dir = Compose.get_compose_dir( - opts.target_dir, conf, compose_type=compose_type, compose_label=opts.label + opts.target_dir, + conf, + compose_type=compose_type, + compose_label=opts.label, + parent_compose_ids=opts.parent_compose_id, + respin_of=opts.respin_of, ) else: compose_dir = opts.compose_dir