Skip to content
Snippets Groups Projects
Commit 789fdbf3 authored by nimrod's avatar nimrod
Browse files

Add checks for kodi.shore.co.il.

parent 91d7697f
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ locals { ...@@ -10,6 +10,7 @@ locals {
"mta-sta", "mta-sta",
"www", "www",
"myip", "myip",
"kodi",
] ]
function_names = [for name in local.functions : "${local.function_name_prefix}-${replace(name, "_", "")}"] function_names = [for name in local.functions : "${local.function_name_prefix}-${replace(name, "_", "")}"]
} }
......
from utils import check_urls
def handler(event, context): # pylint: disable=unused-argument
"""Lambda event handler."""
checks = [
{"url": "http://kodi.shore.co.il/", "codes": [301, 302]},
{"url": "https://kodi.shore.co.il/", "codes": [401]},
]
check_urls(checks)
if __name__ == "__main__":
handler("event", "context")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment