Skip to content

Commit

Permalink
Adjust component nodes to changes in cnudie.iter
Browse files Browse the repository at this point in the history
  • Loading branch information
8R0WNI3 committed Apr 10, 2024
1 parent 4b0f2a6 commit 13d5854
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions components.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ def on_get(self, req: falcon.asgi.Request, resp: falcon.asgi.Response):

component_dependency['comp_ref'] = [
{
'name': ref.name,
'version': ref.version,
'repositoryContexts': ref.repositoryContexts,
'name': ref.component.name,
'version': ref.component.version,
'repositoryContexts': ref.component.repositoryContexts,
}
for ref in component.path
]
Expand Down Expand Up @@ -678,7 +678,7 @@ def resolve_component_dependencies(
component_version: str,
component_descriptor_lookup: cnudie.retrieve.ComponentDescriptorLookupById,
ctx_repo: cm.OcmRepository=None,
) -> list[cm.Component]:
) -> list[cnudie.iter.ComponentNode]:
descriptor = util.retrieve_component_descriptor(
cm.ComponentIdentity(
name=component_name,
Expand Down
4 changes: 2 additions & 2 deletions issue_replicator/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ def _artefacts_for_backlog_item_and_components(
# found artefact of backlog item in component's artefact
if artefact_kind == 'resource':
artefact_node = cnudie.iter.ResourceNode(
path=(component,),
path=(cnudie.iter.NodePathEntry(component),),
resource=artefact,
)
elif artefact_kind == 'source':
artefact_node = cnudie.iter.SourceNode(
path=(component,),
path=(cnudie.iter.NodePathEntry(component),),
source=artefact,
)

Expand Down
2 changes: 1 addition & 1 deletion k8s/backlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,6 @@ def get_resource_node(
raise ValueError(resource)

return cnudie.iter.ResourceNode(
path=(component,),
path=(cnudie.iter.NodePathEntry(component),),
resource=resource,
)

0 comments on commit 13d5854

Please sign in to comment.