summaryrefslogtreecommitdiff
path: root/lib/ansible/errors
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2015-12-02 12:40:46 -0500
committerJames Cammarata <jimi@sngx.net>2015-12-02 14:16:47 -0500
commit8ff67e049451e48e5f79032da88435f570bb5311 (patch)
tree517c7d96b61d2480121ee540da7ffe03757f0ead /lib/ansible/errors
parenteb7db067f9cb41837602de995543367d322bbaff (diff)
downloadansible-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__.py2
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