Default msg param to AnsibleError to avoid serialization problems

pull/13451/head
James Cammarata 9 years ago
parent ed4a06d8ef
commit 38c11e2239

@ -44,7 +44,7 @@ class AnsibleError(Exception):
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,
# since the objects code also imports ansible.errors
from ansible.parsing.yaml.objects import AnsibleBaseYAMLObject

Loading…
Cancel
Save