From e4e806942a6aae81804195ddb54fe40b35620b64 Mon Sep 17 00:00:00 2001 From: Christian Cwienk Date: Mon, 16 Dec 2024 18:14:49 +0100 Subject: [PATCH] require explicit passing of lookup in one more place --- cnudie/retrieve_async.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cnudie/retrieve_async.py b/cnudie/retrieve_async.py index 68a3e46b7..4d1b786c0 100644 --- a/cnudie/retrieve_async.py +++ b/cnudie/retrieve_async.py @@ -646,8 +646,8 @@ def create_default_component_descriptor_lookup( async def component_diff( left_component: ocm.Component | ocm.ComponentDescriptor, right_component: ocm.Component | ocm.ComponentDescriptor, + component_descriptor_lookup: ComponentDescriptorLookupById, ignore_component_names=(), - component_descriptor_lookup: ComponentDescriptorLookupById=None, ) -> cnudie.util.ComponentDiff: import cnudie.iter as ci import cnudie.iter_async as cia # late import to avoid cyclic dependencies @@ -655,9 +655,6 @@ async def component_diff( left_component = cnudie.util.to_component(left_component) right_component = cnudie.util.to_component(right_component) - if not component_descriptor_lookup: - component_descriptor_lookup = create_default_component_descriptor_lookup() - left_components = [ component_node.component async for component_node in cia.iter( component=left_component,