This commit is contained in:
2025-12-15 21:03:38 +01:00
parent 1dde729887
commit 958f050691
2 changed files with 3 additions and 2 deletions

View File

@@ -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"]

View File

@@ -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()