This commit is contained in:
2025-12-23 11:27:57 +01:00
parent e464c498ff
commit b28a7c8273
2 changed files with 6 additions and 5 deletions

View File

@@ -532,10 +532,10 @@ class Portainer:
if not args.autostart:
time.sleep(120)
cont = []
for c in self.all_data["containers"][endpoint]:
if stack == c or stack == "all":
cont += self.all_data["containers"][endpoint][c]
self.stop_containers(endpoint, cont)
for c in self.all_data["containers"][args.endpoint_id]:
if args.stack == c or args.stack == "all":
cont += self.all_data["containers"][args.endpoint_id][c]
self.stop_containers(args.endpoint_id, cont)
def get_endpoints(self, timeout=10):
'''Get a list of all endpoints.'''

View File

@@ -5,3 +5,4 @@ tabulate
flake8
pylint
black
docker