mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Extend failure message for merge_variables type detection (#11107)
merge_variables: extend type detection failure message Update the error message for the merge_variables lookup plugin in case an unsupported type is passed.
This commit is contained in:
@@ -129,7 +129,7 @@ def _verify_and_get_type(variable):
|
||||
elif isinstance(variable, dict):
|
||||
return "dict"
|
||||
else:
|
||||
raise AnsibleError("Not supported type detected, variable must be a list or a dict")
|
||||
raise AnsibleError(f"Not supported type detected, variable must be a list or a dict: '{variable}'")
|
||||
|
||||
|
||||
class LookupModule(LookupBase):
|
||||
|
||||
Reference in New Issue
Block a user