mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2025-12-14 10:44:52 +01:00
build
This commit is contained in:
4
port.py
4
port.py
@@ -232,7 +232,7 @@ class Portainer:
|
||||
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)
|
||||
endpoint_id = self.get_endpoint_id()
|
||||
path = "/stacks"
|
||||
stcks = []
|
||||
stacks = self._api_get(path, timeout=timeout)
|
||||
@@ -603,7 +603,7 @@ class Portainer:
|
||||
p = "standalone"
|
||||
env_path = f"{self.repo_dir}/{stack}/.env"
|
||||
# input(swarm_id)
|
||||
self.endpoint_id = self.get_endpoint_id(endpoint)
|
||||
self.endpoint_id = self.get_endpoint_id()
|
||||
if os.path.exists(self.repo_dir):
|
||||
shutil.rmtree(self.repo_dir)
|
||||
else:
|
||||
|
||||
@@ -475,6 +475,8 @@ if __name__ == "__main__":
|
||||
|
||||
if args.action == "create_stack":
|
||||
por.action = "create_stack"
|
||||
print(cur_config)
|
||||
print(args)
|
||||
args = prompt_missing_args(
|
||||
args,
|
||||
cur_config,
|
||||
|
||||
Reference in New Issue
Block a user