From d58f26d49c31c213eb77f122e499f9aeee49ab67 Mon Sep 17 00:00:00 2001 From: Gentile G Date: Tue, 3 Oct 2023 13:13:22 +0200 Subject: [PATCH] Using url from config file --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 8901a58..e3e9c62 100644 --- a/main.py +++ b/main.py @@ -21,7 +21,7 @@ if __name__ == '__main__': "X-API-Key": config.access_token } - api_url = "https://portainer.dorfsvald.net/api/stacks" + api_url = f"{config.portainer_url}/api/stacks" response = requests.get(api_url, headers=headers) stack_list = response.json()