Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom actions fail when action not defined in pipeline #3647

Merged
merged 8 commits into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ FEATURES:
ENHANCEMENTS:

BUG FIXES:
* Cusotm actions fail on resources with a pipline ([#3646](https://github.com/microsoft/AzureTRE/issues/3646))

## 0.12.0 (July 27, 2023)

Expand Down
2 changes: 1 addition & 1 deletion api_app/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.15.6"
__version__ = "0.15.7"
4 changes: 2 additions & 2 deletions api_app/service_bus/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ async def update_resource_for_step(operation_step: OperationStep, resource_repo:

parent_template = await resource_template_repo.get_template_by_name_and_version(step_resource.templateName, step_resource.templateVersion, step_resource.resourceType, step_resource_parent_service_name)

# if there are no pipelines, no need to continue with substitutions.
if not parent_template.pipeline:
# if there are no pipelines, or custom action, no need to continue with substitutions.
if not parent_template.pipeline or primary_action not in parent_template.pipeline.dict():
SvenAelterman marked this conversation as resolved.
Show resolved Hide resolved
return step_resource

pipeline_primary_action = parent_template.pipeline.dict()[primary_action]
Expand Down