Introduce dig lookup argument fail_on_error (#4973) (#4992)

with default False for backwards compatibility.

Allows fail-fast behavior on lookup failures instead of returning strings and continuing.

(cherry picked from commit 2662bc881f)

Co-authored-by: Benjamin <1982589+tumbl3w33d@users.noreply.github.com>
This commit is contained in:
patchback[bot] 2022-07-24 13:18:38 +02:00 committed by GitHub
commit 695599e7d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 7 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- dig lookup plugin - add option ``fail_on_error`` to allow stopping execution on lookup failures (https://github.com/ansible-collections/community.general/pull/4973).