Using a filter that doesn't exist should generate an error, that I would
definitely like a bug report on if you are not seeing that behavior in
1.7.X.

Thanks!


On Sat, Aug 30, 2014 at 12:23 AM, Xu Chen <[email protected]> wrote:

> Ah, thanks for the hint...
>
> I wrote a new filter function but didn't register it in the end. Is there
> a way to make such errors more obvious? Like fail the execution and tell me
> jinja2 template expansion failed - currently the unexpanded template is
> directly used as the output..
>
> Thanks.
> -Simon
>
> On Wednesday, August 27, 2014 4:11:17 PM UTC-4, Michael DeHaan wrote:
>
>> Hard to say what you error is without seeing the plugin.
>>
>> Perhaps you could paste it?
>>
>>
>> On Wed, Aug 27, 2014 at 3:44 PM, Xu Chen <[email protected]> wrote:
>>
>>> Yes, I wrote some additional plugins and put them in
>>> ansible/lib/runner/filter_plugins/core.py
>>>
>>> Thanks.
>>>
>>>
>>> On Wednesday, August 27, 2014 3:03:28 PM UTC-4, Michael DeHaan wrote:
>>>
>>>> I assume filter_x and filter_y are plugins you wrote?
>>>>
>>>>
>>>>
>>>>
>>>> On Wed, Aug 27, 2014 at 12:01 PM, Xu Chen <[email protected]> wrote:
>>>>
>>>>> I have difficulty using jinja2 combined with cron module in the
>>>>> following way:
>>>>>
>>>>> - cron: name=test job="abc {{ data | filter_x('a') | filter_y('b') }}
>>>>> edf"
>>>>>
>>>>> I tried various combinations, but either the jinja2 template isn't
>>>>> expanded, or I am seeing errors parsing.
>>>>>
>>>>> Any ideas how to make something like this work? Thanks.
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Ansible Project" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To post to this group, send email to [email protected].
>>>>>
>>>>> To view this discussion on the web visit https://groups.google.com/d/
>>>>> msgid/ansible-project/e90cdfa3-8681-4436-b0ef-45eeb5a6c4eb%
>>>>> 40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/ansible-project/e90cdfa3-8681-4436-b0ef-45eeb5a6c4eb%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ansible Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/ansible-project/1c7cb099-0714-4320-b324-
>>> fb246e632aa3%40googlegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/1c7cb099-0714-4320-b324-fb246e632aa3%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/f0889ae3-3b1d-4452-a5a7-80101514d54b%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/f0889ae3-3b1d-4452-a5a7-80101514d54b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgyUsvVfLzCyea64THZoaQX5B7TJ0%3DXGiVstWQxsMhJQSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to