On Wed, 5 Feb 2020 08:37:02 -0800 (PST) Rakesh Parida <[email protected]> wrote:
> when: item is defined and item != None and item != "" See "ComparisonToEmptyStringRule.py" https://github.com/ansible/ansible-lint/blob/master/lib/ansiblelint/rules/ComparisonToEmptyStringRule.py description = ( 'Use ``when: var`` rather than ``when: var != ""`` (or ' 'conversely ``when: not var`` rather than ``when: var == ""``)' ) -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/20200205182642.37e1860e%40gmail.com.
pgp9VzFX91ztl.pgp
Description: OpenPGP digital signature
