mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2025-12-14 02:34:53 +01:00
build
This commit is contained in:
3
port.py
3
port.py
@@ -163,6 +163,7 @@ class Portainer:
|
||||
self.get_endpoints()
|
||||
self.get_stacks(self)
|
||||
self.get_containers(self)
|
||||
return True
|
||||
|
||||
def get_stacks(self, endpoint_id="all", timeout=10):
|
||||
if endpoint_id != "all":
|
||||
@@ -819,4 +820,4 @@ class Portainer:
|
||||
path = f"/endpoints/{endpoint_id}/docker/secrets/create"
|
||||
encoded = base64.b64encode(value.encode()).decode()
|
||||
data = {"Name": name, "Data": encoded}
|
||||
self.api_post(path, data, timeout=timeout)
|
||||
return self.api_post(path, data, timeout=timeout)
|
||||
|
||||
Reference in New Issue
Block a user