This commit is contained in:
2026-01-06 22:02:06 +01:00
parent 3152014ca3
commit fc3fe7b837

View File

@@ -365,8 +365,11 @@ class PortainerApi:
try: try:
for c in containers: for c in containers:
print(c) print(c)
cont.append([c["Names"][0].replace("/", ""),c["Id"], c['Image']]) try:
contr.append([c["Names"][0].replace("/", ""), c["Id"], c['Image']]) cont.append([c["Names"][0].replace("/", ""),c["Id"], c['Image']])
contr.append([c["Names"][0].replace("/", ""), c["Id"], c['Image']])
except:
print("Unable to parse container info")
if self.all_data["endpoints"]["by_id"][endpoint] in data: if self.all_data["endpoints"]["by_id"][endpoint] in data:
data[self.all_data["endpoints"]["by_id"][endpoint]] = contr data[self.all_data["endpoints"]["by_id"][endpoint]] = contr
data[endpoint] = contr data[endpoint] = contr