Skip to content

Commit

Permalink
Allow generators and artifacts to run on node without name attribute (#…
Browse files Browse the repository at this point in the history
…4187)

* Use display label instead of name

* Add changelog shard
  • Loading branch information
BaptisteGi authored Aug 28, 2024
1 parent 6373e51 commit ac24605
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def check(message: messages.RequestArtifactDefinitionCheck, service: Infra
query=message.artifact_definition.query_name,
variables=member.extract(params=artifact_definition.parameters.value),
target_id=member.id,
target_name=member.name.value,
target_name=member.display_label,
timeout=message.artifact_definition.timeout,
validator_id=validator.id,
meta=Meta(validator_execution_id=validator_execution_id, check_execution_id=check_execution_id),
Expand Down Expand Up @@ -203,7 +203,7 @@ async def generate(message: messages.RequestArtifactDefinitionGenerate, service:
query=query.name.value,
variables=member.extract(params=artifact_definition.parameters.value),
target_id=member.id,
target_name=member.name.value,
target_name=member.display_label,
timeout=transform.timeout.value,
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def check(message: messages.RequestGeneratorDefinitionCheck, service: Infr
query=message.generator_definition.query_name,
variables=member.extract(params=message.generator_definition.parameters),
target_id=member.id,
target_name=member.name.value,
target_name=member.display_label,
validator_id=validator.id,
meta=Meta(validator_execution_id=validator_execution_id, check_execution_id=check_execution_id),
)
Expand Down Expand Up @@ -177,7 +177,7 @@ async def run(message: messages.RequestGeneratorDefinitionRun, service: Infrahub
query=message.generator_definition.query_name,
variables=member.extract(params=message.generator_definition.parameters),
target_id=member.id,
target_name=member.name.value,
target_name=member.display_label,
)
)

Expand Down
1 change: 1 addition & 0 deletions changelog/4062.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allow users to run artifacts and generators on nodes without name attribute

0 comments on commit ac24605

Please sign in to comment.