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