uwefladrich / scriptengine

A lightweight and extensible framework for execution scripts written in YAML.
GNU General Public License v3.0
15 stars 4 forks source link

base.find does not update context properly #74

Closed uwefladrich closed 1 year ago

uwefladrich commented 1 year ago

base.find does not store result properly in jobs:

- do:
    - base.find:
        path: foo
        pattern: bar
- base.echo:
    msg: "{{ result }}"

will write None

uwefladrich commented 1 year ago

The issue is that the task needs to use ContextUpdate() to propagate the result.