From 9923f252131d25703242a2d1463dd79cb7dee1c9 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Thu, 25 Jul 2024 21:17:10 +0300 Subject: [PATCH] Add a check for library.shore.co.il. --- functions.tf | 1 + src/library.py | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/library.py diff --git a/functions.tf b/functions.tf index c536b54..7f8fe18 100644 --- a/functions.tf +++ b/functions.tf @@ -6,6 +6,7 @@ locals { "gitlab", "imap", "kodi", + "library", "mta_sts", "myip", "nextcloud", diff --git a/src/library.py b/src/library.py new file mode 100644 index 0000000..8a772cb --- /dev/null +++ b/src/library.py @@ -0,0 +1,14 @@ +"""Check the Transmission web service.""" + +from utils import website_handler + +URLS = [ + {"url": "http://library.shore.co.il/", "codes": [301]}, + {"url": "https://library.shore.co.il/", "codes": [401]}, +] + +handler = website_handler(URLS) + + +if __name__ == "__main__": + handler("event", "context") -- GitLab