diff --git a/functions.tf b/functions.tf index c536b54adead84274501e25957ab56cd906b51d4..7f8fe18c2f1c25dc6acec58fabb9e83e9a3ec963 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 0000000000000000000000000000000000000000..8a772cb6d2ca994a76d78ffa657a8b6b8f289614 --- /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")