Bugzilla – Bug 135858
using maplist on a nested structure in YCP seems to fail
Last modified: 2005-11-29 16:13:00 UTC
the attached code does not work like expected.
Created attachment 58966 [details] example code
Created attachment 58983 [details] shorter test case This test case narrows down the problem. The issue is the bracket assignment operator, where first the left-hand-side map is evaluated, then the key and the new value, and then the map is augmented. So if the new value has side effects that modify the LHS map, they are discarded.
Right Martin. Indeed the lhs was evaluated before the rhs. Fixing this is pretty straightforward. But what will break ?
Fixed in STABLE.