Yaql Range(stop) function fails in Murano dashboard
Bug #1700579 reported by
Ellen Batbouta
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Murano |
New
|
Undecided
|
Unassigned |
Bug Description
In the UI yaml file for my package, I tried to use the range function with the signature:
range(stop)
and I got this error:
File "/usr/local/
raise exceptions.
CollectionTooLa
This is not a high priority bug since there is a work-around. The range function with 2 input
parameters:
signature: range(start, stop, step => 1)
works just fine.
To post a comment you must log in.
The reason this function does not work in the murano dashboard is because the dashboard is using legacy mode for yaql. Legacy mode enables yaql 0.2 as well as yaql 1.0. This range function was broken in yaql 0.2 and explains the behavior reported in this bug.
The solution is to increment the minor version of the murano UI. Then add a version check to determine if legacy mode should be enabled or not.