task expression function throws exception if task wasn't executed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Fix Released
|
Medium
|
Renat Akhmerov |
Bug Description
The function "task" is throwing an exception instead of returning null in case the task wasn't executed.
I was expecting something like “<% task(task2) != null %>” to work but I get the following error:
YaqlEvaluationE
For the below workflow:
version: '2.0'
workflow_test:
type: direct
output:
task2: <% task(task2) %>
tasks:
task1:
action: std.noop
on-success:
- task2: <% false %>
task2:
action: std.noop
Renat: "it's a bug. This function needs to return null if not found. It happens because we use db_api.
Changed in mistral: | |
milestone: | none → ocata-1 |
assignee: | nobody → Renat Akhmerov (rakhmerov) |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in mistral: | |
importance: | High → Medium |
Fix proposed to branch: master /review. openstack. org/383580
Review: https:/