Can't execute task with env() in with-items
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Fix Released
|
High
|
Renat Akhmerov |
Bug Description
Hi!
After migrate from mistal 5 to Mistral 8.0.0.0rc2 we found exception:
Example workflow:
test_workflow_env:
type: direct
tasks:
test_task:
with-items:
- env_param in <% env().input_array %>
action: std.echo
input:
output:
publish:
Execution:
{
"workflow_id": "d7099bb2-
"params": {
"env": {
}
}
}
Produced exception:
Can not evaluate YAQL expression [expression=
Changed in mistral: | |
milestone: | none → train-1 |
assignee: | nobody → Renat Akhmerov (rakhmerov) |
importance: | Undecided → High |
Changed in mistral: | |
status: | New → In Progress |
Reviewed: https:/ /review. opendev. org/679203 /git.openstack. org/cgit/ openstack/ mistral/ commit/ ?id=f92a5c8f445 f132c230f20429b da0d1889996a84
Committed: https:/
Submitter: Zuul
Branch: master
commit f92a5c8f445f132 c230f20429bda0d 1889996a84
Author: Renat Akhmerov <email address hidden>
Date: Thu Aug 29 15:34:23 2019 +0700
Fix 'with-items' expression evaluation
* There was a bug left after the recent refactoring. While
evaluating 'with-items' expression we didn't construct a context
view properly, it didn't include a workflow environment. This
patch fixes it.
Closes-Bug: #1839840 4418085fe0117fe 8b37ce5ba3f
Change-Id: I3df711ef248437