mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2026-05-04 14:49:49 +02:00
Compare commits
2 Commits
64c3615705
...
8067ac8561
| Author | SHA1 | Date | |
|---|---|---|---|
| 8067ac8561 | |||
| 79e9e708b4 |
@@ -48,7 +48,7 @@ def setup_vault():
|
||||
# Specify the mount point of your KV engine
|
||||
return vclient
|
||||
|
||||
VERSION = "0.1.76"
|
||||
VERSION = "0.1.77"
|
||||
|
||||
|
||||
defaults = {
|
||||
|
||||
+1
-1
@@ -180,7 +180,7 @@ class PortainerApi:
|
||||
def _api_get(self, path, timeout=120):
|
||||
url = f"{self.base_url.rstrip('/')}{path}"
|
||||
headers = {"X-API-Key": f"{self.token}"}
|
||||
resp = requests.get(url, headers=headers, timeout=timeout)
|
||||
resp = requests.get(url, headers=headers, timeout=120)
|
||||
if resp.status_code != 200:
|
||||
return resp.status_code
|
||||
print(f"Error: {resp.status_code} - {resp.text}")
|
||||
|
||||
Reference in New Issue
Block a user