mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Include error exception in AnsibleError
- Use to_native instead of str Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
committed by
Brian Coca
parent
cce133b14f
commit
f9b836a901
@@ -178,7 +178,7 @@ class LookupModule(LookupBase):
|
||||
yield formatted
|
||||
except (ValueError, TypeError):
|
||||
raise AnsibleError(
|
||||
"problem formatting %r with %r" % self.format
|
||||
"problem formatting %r with %r" % (i, self.format)
|
||||
)
|
||||
|
||||
def run(self, terms, variables, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user