mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2026-01-28 20:39:45 +01:00
build
This commit is contained in:
@@ -361,7 +361,7 @@ class PortainerApi:
|
||||
print(f"failed to get containers from {path}: {e}")
|
||||
continue
|
||||
contr = []
|
||||
print(f"Containers: {containers}")
|
||||
# print(f"Containers: {containers}")
|
||||
try:
|
||||
for c in containers:
|
||||
print(c)
|
||||
@@ -492,7 +492,7 @@ class PortainerApi:
|
||||
stacks_tuples.append((s['Webhook'],s['Name']))
|
||||
# print(s['Name'], " : ", s['Webhook'])
|
||||
stacks_dict = dict(stacks_tuples)
|
||||
print(stacks_dict)
|
||||
# print(stacks_dict)
|
||||
#input(stacks_tuples)
|
||||
# stacks_tuples = [(s['AutoUpdate']['Webhook'], s['Name']) for s in stacks if "Webhook" in s['AutoUpdate'] ]
|
||||
|
||||
@@ -527,7 +527,7 @@ class PortainerApi:
|
||||
if s in stack_ids:
|
||||
stcs.append([s, stack_dict[s]])
|
||||
|
||||
print(stcs)
|
||||
# print(stcs)
|
||||
with ThreadPoolExecutor(max_workers=10) as exe:
|
||||
list(exe.map(update, stcs))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user