mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2025-12-16 11:24:53 +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"]
|
||||
|
||||
@@ -573,7 +573,7 @@ if __name__ == "__main__":
|
||||
("endpoint_id", "Endpoint ID"),
|
||||
],
|
||||
)
|
||||
por.print_stacks(args.endpoint_id)
|
||||
por.print_stacks(args)
|
||||
# print(json.dumps(por.all_data, indent=2))
|
||||
sys.exit()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user