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 = []
|
data = []
|
||||||
stack_names = []
|
stack_names = []
|
||||||
for stack in stacks:
|
for stack in stacks:
|
||||||
print(stack)
|
# print(stack)
|
||||||
if endpoint is not None:
|
if endpoint is not None:
|
||||||
if not stack["EndpointId"] in self.endpoints["by_id"]:
|
if not stack["EndpointId"] in self.endpoints["by_id"]:
|
||||||
continue
|
continue
|
||||||
@@ -861,6 +861,7 @@ class Portainer:
|
|||||||
logger.debug(
|
logger.debug(
|
||||||
"KeyError getting endpoint name for stack %s : %s", stack["Name"], e
|
"KeyError getting endpoint name for stack %s : %s", stack["Name"], e
|
||||||
)
|
)
|
||||||
|
count += 1
|
||||||
|
|
||||||
data = sorted(data, key=lambda x: x[1])
|
data = sorted(data, key=lambda x: x[1])
|
||||||
headers = ["StackID", "Name", "Endpoint"]
|
headers = ["StackID", "Name", "Endpoint"]
|
||||||
|
|||||||
@@ -573,7 +573,7 @@ if __name__ == "__main__":
|
|||||||
("endpoint_id", "Endpoint ID"),
|
("endpoint_id", "Endpoint ID"),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
por.print_stacks(args.endpoint_id)
|
por.print_stacks(args)
|
||||||
# print(json.dumps(por.all_data, indent=2))
|
# print(json.dumps(por.all_data, indent=2))
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user