Skip to content

Commit

Permalink
require explicit passing of lookup in one more place
Browse files Browse the repository at this point in the history
ccwienk committed Dec 16, 2024
1 parent fe60be4 commit e4e8069
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cnudie/retrieve_async.py
Original file line number Diff line number Diff line change
@@ -646,18 +646,15 @@ 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

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,

0 comments on commit e4e8069

Please sign in to comment.