diff options
author | James Cammarata <jimi@sngx.net> | 2015-12-02 12:40:46 -0500 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2015-12-02 14:16:47 -0500 |
commit | 8ff67e049451e48e5f79032da88435f570bb5311 (patch) | |
tree | 517c7d96b61d2480121ee540da7ffe03757f0ead /lib/ansible/errors | |
parent | eb7db067f9cb41837602de995543367d322bbaff (diff) | |
download | ansible-8ff67e049451e48e5f79032da88435f570bb5311.tar.gz |
Default msg param to AnsibleError to avoid serialization problems
Diffstat (limited to 'lib/ansible/errors')
-rw-r--r-- | lib/ansible/errors/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/errors/__init__.py b/lib/ansible/errors/__init__.py index a2411b7bef..017272af7c 100644 --- a/lib/ansible/errors/__init__.py +++ b/lib/ansible/errors/__init__.py @@ -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 |