mirror of
https://github.com/ansible/ansible.git
synced 2025-11-30 23:16:08 +07:00
config lookup, remove unreachable code (#86051)
defensive, but uneeded since get_option already precludes bad values this far in
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user