config lookup, remove unreachable code (#86051)

defensive, but uneeded since get_option already precludes bad values
this far in
pull/86063/head
Brian Coca 1 month ago committed by GitHub
parent 730af3239d
commit 5904846342
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -128,8 +128,6 @@ class LookupModule(LookupBase):
pass
case 'warn':
self._display.error_as_warning(msg=f"Skipping {term}.", exception=e)
case _:
raise AnsibleError(f"Invalid option for error handling, missing must be error, warn or skip, got: {missing}.") from e
if result is not Sentinel:
if show_origin:

Loading…
Cancel
Save