This commit is contained in:
2025-12-04 15:59:56 +01:00
parent 0ab5e9627b
commit 90712be4b2
2 changed files with 68 additions and 15 deletions

View File

@@ -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: