Fix callback_type for validation_json.py

'agregate' callback type is not an official callback type for
Ansible. It should be 'aggregate' with two g instead of one.

This patch fixes that issue.

Change-Id: Ieb1554a455017a0ed8c252fe414ea7479544a028
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
This commit is contained in:
Gael Chamoulaud (Strider) 2021-05-14 09:37:35 +02:00
parent 98b33a6448
commit 01842ab1b4
No known key found for this signature in database
GPG Key ID: 4119D0305C651D66
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ DOCUMENTATION = '''
description:
- This callback converts all events into a JSON file
stored in /var/log/validations
type: agregate
type: aggregate
requirements: None
'''
@ -59,7 +59,7 @@ def secondsToStr(t):
class CallbackModule(CallbackBase):
CALLBACK_VERSION = 2.0
CALLBACK_TYPE = 'agregate'
CALLBACK_TYPE = 'aggregate'
CALLBACK_NAME = 'validation_json'
def __init__(self, display=None):

View File

@ -81,7 +81,7 @@ class TestValidationJson(base.TestCase):
self.assertIn('CALLBACK_TYPE', dir(callback))
self.assertEqual(callback.CALLBACK_NAME, 'validation_json')
self.assertIsInstance(callback.CALLBACK_VERSION, float)
self.assertEqual(callback.CALLBACK_TYPE, 'agregate')
self.assertEqual(callback.CALLBACK_TYPE, 'aggregate')
"""
Additionally, the 'validation_json' callback performs several
other operations during instantiation.