Skip to content

Commit

Permalink
feat: add support for uptime kuma 1.19.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasheld committed Jan 4, 2023
1 parent 3bc2fb2 commit 862ad5d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This collection contains modules that allow to configure [Uptime Kuma](https://g

Python version 3.6+ is required.

Supported Uptime Kuma versions: 1.17.0 - 1.19.2
Supported Uptime Kuma versions: 1.17.0 - 1.19.3


## Installation
Expand Down
22 changes: 15 additions & 7 deletions plugins/modules/notification_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
gotifyPriority:
description: gotify provider option.
returned: if type is gotify
type: str
type: int
lineChannelAccessToken:
description: line provider option.
returned: if type is line
Expand Down Expand Up @@ -416,18 +416,14 @@
description: slack provider option.
returned: if type is slack
type: str
slackbutton:
description: slack provider option.
returned: if type is slack
type: str
smtpHost:
description: smtp provider option.
returned: if type is smtp
type: str
smtpPort:
description: smtp provider option.
returned: if type is smtp
type: str
type: int
smtpSecure:
description: smtp provider option.
returned: if type is smtp
Expand Down Expand Up @@ -647,7 +643,7 @@
ntfyPriority:
description: ntfy provider option.
returned: if type is ntfy
type: str
type: int
ntfyIcon:
description: ntfy provider option.
returned: if type is ntfy
Expand Down Expand Up @@ -680,6 +676,18 @@
description: SMSEagle provider option.
returned: if type is SMSEagle
type: str
webhookUrl:
description: ZohoCliq provider option.
returned: if type is ZohoCliq
type: str
kookGuildID:
description: Kook provider option.
returned: if type is Kook
type: str
kookBotToken:
description: Kook provider option.
returned: if type is Kook
type: str
'''

import traceback
Expand Down
2 changes: 1 addition & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if [ $version ] && [ "$version" != "all" ]
then
versions=("$version")
else
versions=(1.19.2 1.18.5 1.17.1)
versions=(1.19.3 1.18.5 1.17.1)
fi

targets=""
Expand Down
4 changes: 2 additions & 2 deletions scripts/build_notification_info_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def build_providers():

for provider in build_providers():
options = notification_provider_options[provider]
for option in options:
for option, args in options.items():
print(f'{option}:')
print(f' description: {provider} provider option.')
print(f' returned: if type is {provider}')
print(f' type: str')
print(f' type: {args["type"]}')

0 comments on commit 862ad5d

Please sign in to comment.