mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2025-12-16 19:30:00 +01:00
build
This commit is contained in:
3
port.py
3
port.py
@@ -840,7 +840,7 @@ class Portainer:
|
||||
data = []
|
||||
stack_names = []
|
||||
for stack in stacks:
|
||||
print(stack)
|
||||
# print(stack)
|
||||
if endpoint is not None:
|
||||
if not stack["EndpointId"] in self.endpoints["by_id"]:
|
||||
continue
|
||||
@@ -861,6 +861,7 @@ class Portainer:
|
||||
logger.debug(
|
||||
"KeyError getting endpoint name for stack %s : %s", stack["Name"], e
|
||||
)
|
||||
count += 1
|
||||
|
||||
data = sorted(data, key=lambda x: x[1])
|
||||
headers = ["StackID", "Name", "Endpoint"]
|
||||
|
||||
Reference in New Issue
Block a user