mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Correct the AnsibleError exception to call its superclass's constructor
This commit is contained in:
@@ -51,6 +51,8 @@ class AnsibleError(Exception):
|
||||
'''
|
||||
|
||||
def __init__(self, message="", obj=None, show_content=True, suppress_extended_error=False, orig_exc=None):
|
||||
super(AnsibleError, self).__init__(message)
|
||||
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user