Undeprecated the skip argument for first_found. Fixes #58942. Fixes #59949. (#60161)

pull/60171/head
Matt Martz 5 years ago committed by GitHub
parent c954c07271
commit 707e33793d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save