Using url from config file

This commit is contained in:
2023-10-03 13:13:22 +02:00
parent ef7e5956ed
commit d58f26d49c

View File

@@ -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()