From 38c11e22397a0b93f121268527669d7318812a4d Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 2 Dec 2015 12:40:46 -0500 Subject: [PATCH] Default msg param to AnsibleError to avoid serialization problems --- lib/ansible/errors/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/errors/__init__.py b/lib/ansible/errors/__init__.py index a2411b7bef7..017272af7ca 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