This commit is contained in:
parent
c954c07271
commit
707e33793d
2 changed files with 4 additions and 7 deletions
|
@ -0,0 +1,4 @@
|
|||
bugfixes:
|
||||
- first_found - Un-deprecate ``skip``, as the alternative of ``errors`` does
|
||||
not work with ``with_first_found`` and only use of ``lookup``
|
||||
(https://github.com/ansible/ansible/issues/58942)
|
|
@ -29,10 +29,6 @@ DOCUMENTATION = """
|
|||
type: boolean
|
||||
default: False
|
||||
description: Return an empty list if no file is found, instead of an error.
|
||||
deprecated:
|
||||
why: A generic that applies to all errors exists for all lookups.
|
||||
version: "2.8"
|
||||
alternative: The generic ``errors=ignore``
|
||||
"""
|
||||
|
||||
EXAMPLES = """
|
||||
|
@ -130,9 +126,6 @@ class LookupModule(LookupBase):
|
|||
for term in terms:
|
||||
if isinstance(term, dict):
|
||||
|
||||
if 'skip' in term:
|
||||
self._display.deprecated('Use errors="ignore" instead of skip', version='2.12')
|
||||
|
||||
files = term.get('files', [])
|
||||
paths = term.get('paths', [])
|
||||
skip = boolean(term.get('skip', False), strict=False)
|
||||
|
|
Loading…
Reference in a new issue