mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07: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:
parent
cce133b14f
commit
f9b836a901
5 changed files with 11 additions and 9 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue