mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Fix spelling mistakes (comments only) (#25564)
Original Author : klemens <ka7@github.com> Taking over previous PR as per https://github.com/ansible/ansible/pull/23644#issuecomment-307334525 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
committed by
John R Barker
parent
460d932aa8
commit
b89cb95609
@@ -38,7 +38,7 @@ options:
|
||||
required: true
|
||||
msg:
|
||||
description:
|
||||
- The message you wish to deliver as a notifcation
|
||||
- The message you wish to deliver as a notification
|
||||
required: true
|
||||
title:
|
||||
description:
|
||||
|
||||
@@ -43,7 +43,7 @@ options:
|
||||
api_key:
|
||||
description:
|
||||
- Mattermost webhook api key. Log into your mattermost site, go to
|
||||
Menu -> Integration -> Incomming Webhook -> Add Incomming Webhook.
|
||||
Menu -> Integration -> Incoming Webhook -> Add Incoming Webhook.
|
||||
This will give you full URL. api_key is the last part.
|
||||
http://mattermost.example.com/hooks/C(API_KEY)
|
||||
required: true
|
||||
@@ -147,7 +147,7 @@ def main():
|
||||
if module.check_mode is False:
|
||||
response, info = fetch_url(module=module, url=webhook_url, headers=headers, method='POST', data=payload)
|
||||
|
||||
#somthing's wrong
|
||||
#something's wrong
|
||||
if info['status'] != 200:
|
||||
#some problem
|
||||
result['msg'] = "Failed to send mattermost message, the error was: {0}".format(info['msg'])
|
||||
|
||||
@@ -60,7 +60,7 @@ options:
|
||||
channel:
|
||||
description:
|
||||
- Channel to send the message to. If absent, the message goes to the channel selected for the I(token)
|
||||
specifed during the creation of webhook.
|
||||
specified during the creation of webhook.
|
||||
required: false
|
||||
default: None
|
||||
username:
|
||||
|
||||
Reference in New Issue
Block a user