Yeah... I'm confused. I found with_nested to be a bit odd in the first
place, much less trying to figure out what Petros is adding.
I ended up with
https://github.com/jerrac/aspects/blob/master/ansible_plugins/lookup_plugins/subdict.pyused
at
On 05/10/2014 03:07 AM, Michael DeHaan wrote:
tl;dr: is there a way to make with_subelements work with dicts? Or
something to that effect?
Doesn't sound like you need the nested loop that subelements provides
and you'd be happy
with
tl;dr: is there a way to make with_subelements work with dicts? Or
something to that effect?
Doesn't sound like you need the nested loop that subelements provides and
you'd be happy with
https://github.com/ansible/ansible/blob/devel/lib/ansible/runner/lookup_plugins/dict.py
That is unless you
So, I took a look at creating a plugin. I copied subelements.py, and
modified it to return a dict. See
https://gist.github.com/jerrac/8a16e0c1031df89621da
I think it will do what I want, I've only done some basic testing. Anyone
have any feedback?
Should I modify the copyright? I'm pretty sure