mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2026-01-29 12:59:44 +01:00
build
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user