From 272438459237cb0dee61a39941d79a4bd5a3caf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Lipovsk=C3=BD?= Date: Fri, 12 Dec 2025 12:47:01 +0100 Subject: [PATCH] Fix distribution scope --- iib/workers/tasks/build_containerized_fbc_operations.py | 1 + .../test_tasks/test_build_containerized_fbc_operations.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/iib/workers/tasks/build_containerized_fbc_operations.py b/iib/workers/tasks/build_containerized_fbc_operations.py index 03860ecbe..8efc5254a 100644 --- a/iib/workers/tasks/build_containerized_fbc_operations.py +++ b/iib/workers/tasks/build_containerized_fbc_operations.py @@ -104,6 +104,7 @@ def handle_containerized_fbc_operation_request( from_index_resolved = prebuild_info['from_index_resolved'] binary_image_resolved = prebuild_info['binary_image_resolved'] arches = prebuild_info['arches'] + distribution_scope = prebuild_info['distribution_scope'] index_to_gitlab_push_map = index_to_gitlab_push_map or {} # Variables mr_details, last_commit_sha and original_index_db_digest diff --git a/tests/test_workers/test_tasks/test_build_containerized_fbc_operations.py b/tests/test_workers/test_tasks/test_build_containerized_fbc_operations.py index 7084e94a9..aa9b108d1 100644 --- a/tests/test_workers/test_tasks/test_build_containerized_fbc_operations.py +++ b/tests/test_workers/test_tasks/test_build_containerized_fbc_operations.py @@ -362,6 +362,7 @@ def test_handle_containerized_fbc_operation_request_with_overwrite( 'binary_image_resolved': 'binary@sha256:123', 'from_index_resolved': 'index@sha256:456', 'ocp_version': 'v4.6', + 'distribution_scope': 'prod', } mock_gri.return_value = 'fbc@sha256:789' mock_ugri.return_value = 'fbc@sha256:789' @@ -476,6 +477,7 @@ def test_handle_containerized_fbc_operation_request_failure( 'binary_image_resolved': 'binary@sha256:123', 'from_index_resolved': 'index@sha256:456', 'ocp_version': 'v4.6', + 'distribution_scope': 'prod', } mock_gri.return_value = 'fbc@sha256:789' mock_ugri.return_value = 'fbc@sha256:789'