Compare commits

..

4 Commits

Author SHA1 Message Date
3152014ca3 build 2026-01-05 17:45:29 +01:00
e411c81224 build 2026-01-05 17:43:44 +01:00
8ae696a96a build 2026-01-05 17:35:54 +01:00
abd989a0db build 2026-01-05 14:55:37 +01:00

View File

@@ -343,7 +343,6 @@ class PortainerApi:
# print(stack)
cont = []
data = {}
eps = [ep for ep in self.all_data['endpoints']['by_id'].keys()]
#input(eps)
for endpoint in eps:
@@ -362,9 +361,10 @@ class PortainerApi:
print(f"failed to get containers from {path}: {e}")
continue
contr = []
print(f"Containers: {containers}")
try:
for c in containers:
#input(c)
print(c)
cont.append([c["Names"][0].replace("/", ""),c["Id"], c['Image']])
contr.append([c["Names"][0].replace("/", ""), c["Id"], c['Image']])
if self.all_data["endpoints"]["by_id"][endpoint] in data:
@@ -514,7 +514,7 @@ class PortainerApi:
values=stacks_tuples
).run()
stcs = []
input(stack_ids)
#input(stack_ids)
if args.stack == "all":
for s in stack_dict:
@@ -528,7 +528,7 @@ class PortainerApi:
with ThreadPoolExecutor(max_workers=10) as exe:
list(exe.map(update, stcs))
input('UPDATED')
#input('UPDATED')
if not args.autostart:
time.sleep(120)
cont = []
@@ -1030,6 +1030,7 @@ class PortainerApi:
print(err)
else:
print(ok)
self.gotify_message(f"Service update process finished")
print("\033[?25h", end="")
return True