Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

structure output for get_targets_from_node_groups #6

Open
rwaffen opened this issue Aug 4, 2022 · 0 comments
Open

structure output for get_targets_from_node_groups #6

rwaffen opened this issue Aug 4, 2022 · 0 comments

Comments

@rwaffen
Copy link
Member

rwaffen commented Aug 4, 2022

if we put the output into on json key, we can handle the output better in a plan.

instead returning: ["node1, "node2"]

return: {"nodes": ["node1", "node2"]}

then we cann acces them with $nodes.first.value instead of parsejson($nodes.first.value['_output'].strip)

and $nodes.first.value you can merge then into the next task/plan/step

run_task(some::task, $$nodes.first.value['nodes'], "a name")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant