mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2025-12-14 02:34:53 +01:00
build
This commit is contained in:
6
port.py
6
port.py
@@ -725,9 +725,11 @@ class Portainer:
|
||||
self.get_stack(stack, endpoint_id)
|
||||
else:
|
||||
if stack is not None:
|
||||
self.stack_ids = [self.get_stack(stack, endpoint_id)["Id"]]
|
||||
self.stack_ids = [self._resolve_stack_id(stack, endpoint_id)]
|
||||
# print(self.stack_ids)
|
||||
for stck in self.stack_ids:
|
||||
path = f"/stacks/{stack}/stop"
|
||||
path = f"/stacks/{stck}/stop"
|
||||
# print(path)
|
||||
if self.endpoint_id is not None:
|
||||
path += f"?endpointId={self.endpoint_id}"
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user