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: if not args.autostart:
time.sleep(120) time.sleep(120)
cont = [] cont = []
for c in self.all_data["containers"][endpoint]: for c in self.all_data["containers"][args.endpoint_id]:
if stack == c or stack == "all": if args.stack == c or args.stack == "all":
cont += self.all_data["containers"][endpoint][c] cont += self.all_data["containers"][args.endpoint_id][c]
self.stop_containers(endpoint, cont) self.stop_containers(args.endpoint_id, cont)
def get_endpoints(self, timeout=10): def get_endpoints(self, timeout=10):
'''Get a list of all endpoints.''' '''Get a list of all endpoints.'''

View File

@@ -4,4 +4,5 @@ tabulate
# Other dev tools # Other dev tools
flake8 flake8
pylint pylint
black black
docker