Compare commits

...

2 Commits

Author SHA1 Message Date
ladislav.dusa
3e86a75502 build 2026-01-08 09:06:23 +01:00
ladislav.dusa
11cd76215a build 2026-01-08 08:52:35 +01:00
2 changed files with 7 additions and 5 deletions

View File

@@ -361,10 +361,10 @@ 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)
# print(c)
try:
cont.append([c["Names"][0].replace("/", ""),c["Id"], c['Image']])
contr.append([c["Names"][0].replace("/", ""), c["Id"], c['Image']])
@@ -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))

View File

@@ -5,4 +5,6 @@ tabulate
flake8
pylint
black
docker
docker
hvac
prompt_toolkit