Show More
@@ -411,17 +411,17 b' def runmap(context, mapping, data):' | |||
|
411 | 411 | else: |
|
412 | 412 | raise error.ParseError(_("%r is not iterable") % d) |
|
413 | 413 | |
|
414 |
for |
|
|
414 | for v in diter: | |
|
415 | 415 | lm = mapping.copy() |
|
416 |
if isinstance( |
|
|
417 |
lm.update( |
|
|
416 | if isinstance(v, dict): | |
|
417 | lm.update(v) | |
|
418 | 418 | lm['originalnode'] = mapping.get('node') |
|
419 | 419 | yield tfunc(context, lm, tdata) |
|
420 | 420 | else: |
|
421 | 421 | # v is not an iterable of dicts, this happen when 'key' |
|
422 | 422 | # has been fully expanded already and format is useless. |
|
423 | 423 | # If so, return the expanded value. |
|
424 |
yield |
|
|
424 | yield v | |
|
425 | 425 | |
|
426 | 426 | def buildnegate(exp, context): |
|
427 | 427 | arg = compileexp(exp[1], context, exprmethods) |
General Comments 0
You need to be logged in to leave comments.
Login now