mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2025-12-14 02:34:53 +01:00
build
This commit is contained in:
4
port.py
4
port.py
@@ -27,6 +27,7 @@ class Portainer:
|
||||
def __init__(self, site, timeout=10):
|
||||
self.base_url = None
|
||||
self.token = None
|
||||
self.action = None
|
||||
self._debug = False
|
||||
self.timeout = timeout
|
||||
self.git_url = "git@gitlab.sectorq.eu:home/docker-compose.git"
|
||||
@@ -36,6 +37,7 @@ class Portainer:
|
||||
self.stack_ids = []
|
||||
self.endpoint_name = None
|
||||
self.endpoint_id = None
|
||||
|
||||
# self.git_url = "https://gitlab.sectorq.eu/home/docker-compose.git"
|
||||
self.git_url = "git@gitlab.sectorq.eu:home/docker-compose.git"
|
||||
self.repo_dir = "/tmp/docker-compose"
|
||||
@@ -192,7 +194,7 @@ class Portainer:
|
||||
self.get_containers(self)
|
||||
return True
|
||||
|
||||
def get_stacks(self, endpoint_id="all", timeout=10):
|
||||
def get_stacks(self, endpoint_id="all", timeout=20):
|
||||
'''Get a list of stacks for a specific endpoint or all endpoints.'''
|
||||
if endpoint_id != "all":
|
||||
endpoint_id = self.get_endpoint_id(endpoint_id)
|
||||
|
||||
Reference in New Issue
Block a user