Open igcherkaev opened 2 years ago
There's an existing issue that's been already reported: https://github.com/StackStorm/orquesta/issues/247 Let me know if you'd like to close this one or that one to avoid duplicates.
Another report for the same issue: https://github.com/StackStorm/st2/issues/5547
@cognifloyd suggested using this and it seems to be working, in case other YAQL expressions are broken:
tasks:
task1:
with:
items: i in <% ctx().var1.keys().toList() %>
action: core.noop
SUMMARY
Two YAQL's methods for dict type are broken:
keys()
anditems()
.STACKSTORM VERSION
Paste the output of
st2 --version
:OS, environment, install method
Standard installation on Centos 7. The issue confirmed on a test instance by Carlos. His test instance is running st2 3.7.0.
Steps to reproduce the problem
Meta:
Orquesta workflow:
Expected Results
One iteration of task1 to be executed successfully. According to YAQL docs: https://yaql.readthedocs.io/en/latest/standard_library.html#keys and https://yaql.readthedocs.io/en/latest/standard_library.html#items - both methods should allow you to iterate over items. I believe this is some kind of regression bug, as this approach used to work on st2 3.4.1. Some time after that it got broken.
Actual Results
P.S. For those who run into the same issue, there is a workaround: