mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2026-01-28 20:39:45 +01:00
Compare commits
2 Commits
4bbe283211
...
3e86a75502
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e86a75502 | ||
|
|
11cd76215a |
@@ -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))
|
||||
|
||||
|
||||
@@ -5,4 +5,6 @@ tabulate
|
||||
flake8
|
||||
pylint
|
||||
black
|
||||
docker
|
||||
docker
|
||||
hvac
|
||||
prompt_toolkit
|
||||
Reference in New Issue
Block a user