From 6644a0b20e49ae8df2e72b9f2cfd02459b70d528 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Mon, 26 Oct 2020 11:40:26 +0000 Subject: [PATCH] Rename the variables for the two different types of Gotify key --- README.md | 16 ++++++++-------- src/alertify/__init__.py | 4 ++-- src/alertify/config.py | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 1e8a3fe..cb5323a 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,14 @@ optional arguments: -H, --healthcheck simply exit with 0 for healthy or 1 when unhealthy The following environment variables will override any config or default: - * DELETE_ONRESOLVE (default: False) - * DISABLE_RESOLVED (default: False) - * GOTIFY_CLIENT (default: None) - * GOTIFY_KEY (default: None) - * GOTIFY_PORT (default: 80) - * GOTIFY_SERVER (default: localhost) - * LISTEN_PORT (default: 8080) - * VERBOSE (default: 0) + * DELETE_ONRESOLVE (default: False) + * DISABLE_RESOLVED (default: False) + * GOTIFY_KEY_APP (default: None) + * GOTIFY_KEY_CLIENT (default: None) + * GOTIFY_PORT (default: 80) + * GOTIFY_SERVER (default: localhost) + * LISTEN_PORT (default: 8080) + * VERBOSE (default: 0) ``` diff --git a/src/alertify/__init__.py b/src/alertify/__init__.py index 80c92e2..045c549 100644 --- a/src/alertify/__init__.py +++ b/src/alertify/__init__.py @@ -25,8 +25,8 @@ class Alertify: self.gotify = Gotify( self.config.gotify_server, self.config.gotify_port, - self.config.gotify_key, - self.config.gotify_client, + self.config.gotify_key_app, + self.config.gotify_key_app, ) self.message_handler = MessageHandler( self.gotify, diff --git a/src/alertify/config.py b/src/alertify/config.py index 155e5f7..86cd9bb 100644 --- a/src/alertify/config.py +++ b/src/alertify/config.py @@ -16,8 +16,8 @@ class Config: delete_onresolve = bool(False) disable_resolved = bool(False) - gotify_client = str() - gotify_key = str() + gotify_key_app = str() + gotify_key_client = str() gotify_port = int(80) gotify_server = str('localhost') listen_port = int(8080)