mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07:00
Default msg param to AnsibleError to avoid serialization problems
This commit is contained in:
parent
eb7db067f9
commit
8ff67e0494
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class AnsibleError(Exception):
|
||||||
which should be returned by the DataLoader() class.
|
which should be returned by the DataLoader() class.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def __init__(self, message, obj=None, show_content=True):
|
def __init__(self, message="", obj=None, show_content=True):
|
||||||
# we import this here to prevent an import loop problem,
|
# we import this here to prevent an import loop problem,
|
||||||
# since the objects code also imports ansible.errors
|
# since the objects code also imports ansible.errors
|
||||||
from ansible.parsing.yaml.objects import AnsibleBaseYAMLObject
|
from ansible.parsing.yaml.objects import AnsibleBaseYAMLObject
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue