-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
Milestone
Description
JSON code:
"testlist" : ["A", "B", "C", "D"],
"param2" : ${testlist}[X]
causes:
'Invalid syntax! A sub-element in ${testlist}[X] has to enclosed in quotes.'
That's wrong. Correct would be something like: "list indices must be integers"
For example, this works:
"intval" : 1,
"testlist" : ["B", 2],
${testlist}['${intval}'] : 4
Outcome:
'Could not set variable '${testlist}['${intval}']' with value '4'! Reason: list indices must be integers or slices, not str'
Addendum: In between it has been decided to block slicing. Therefore we cannot suggest to use slices. The part "or slices" has to be removed from error message.
Metadata
Metadata
Assignees
Labels
Projects
Status
Done