mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 14:30:28 -05:00
fix(cloudformation): honor stack status filters (#2244)
This commit is contained in:
1 parent
f1c81977ec
commit
34c9c6c0f5
2 files changed
+81
-1
No files matched your search
+4
-1
@@ -455,7 +455,10 @@ public class CloudFormationQueryHandler {
|
||||
// ── ListStacks ────────────────────────────────────────────────────────────
|
||||
|
||||
private Response listStacks(MultivaluedMap<String, String> params, String region) {
|
||||
List<Stack> stacks = cfnService.listStacks(region);
|
||||
List<String> statusFilter = extractList(params, "StackStatusFilter.member.");
|
||||
List<Stack> stacks = cfnService.listStacks(region).stream()
|
||||
.filter(stack -> statusFilter.isEmpty() || statusFilter.contains(stack.getStatus()))
|
||||
.toList();
|
||||
XmlBuilder xml = new XmlBuilder()
|
||||
.start("ListStacksResponse", CF_NS)
|
||||
.start("ListStacksResult")
|
||||
|
||||
Reference in new issue
Block a user