Thanks Matt,
Without quotes:
Failed to template {{ build_number | default(~) }}: template error while
templating string: unexpected '~'
With singles quotes it is not converted to null and simple taken as a
string. Will raise an issue.
On Friday, June 19, 2015 at 10:55:27 PM UTC+1, Matt Martz wrote:
>
> I don't see why not, logging an issue could result in adding such
> functionality.
>
> Another thing to try in the meantime is to replace with a '~'. Quotes are
> probably necessary.
>
> ~ in YAML means None in Python.
>
> On Friday, June 19, 2015, ddffgpmfn <[email protected] <javascript:>> wrote:
>
>> Alas, default('') applies an empty tag which then shows up in the
>> inventory.
>>
>> I don't see a ticket about this, may I raise an enhancement?
>>
>> --
>> 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/213195d6-8a87-4c19-a190-219027adb588%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/ansible-project/213195d6-8a87-4c19-a190-219027adb588%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Matt Martz
> @sivel
> sivel.net
>
>
--
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/1d981f53-acb7-4a84-9118-3fea093aee8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.