mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Misc fixes for several errors
* aci: Correct usage in fail_json * Fixes incorrect usage of fail_json * Raise exception object Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
638834dc4e
commit
ab86051c0b
7 changed files with 11 additions and 11 deletions
|
@ -426,7 +426,7 @@ def main():
|
|||
if module.params['event_source'].lower() in ('stream', 'sqs'):
|
||||
results = lambda_event_stream(module, aws)
|
||||
else:
|
||||
module.fail_json('Please select `stream` or `sqs` as the event type')
|
||||
module.fail_json(msg='Please select `stream` or `sqs` as the event type')
|
||||
|
||||
module.exit_json(**results)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue