mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
fix(ec2): apply availability-zone filter in DescribeInstances (#2543)
Fixes #2542
This commit is contained in:
1 parent
f8597bdef9
commit
3bdcd5b84f
2 files changed
+96
No files matched your search
@@ -5096,6 +5096,8 @@ public class Ec2Service implements ContainerTeardown, ResourceProvider {
|
||||
case "instance-type" -> matchesValue(values, inst.getInstanceType());
|
||||
case "vpc-id" -> matchesValue(values, inst.getVpcId());
|
||||
case "subnet-id" -> matchesValue(values, inst.getSubnetId());
|
||||
case "availabilityZone", "availability-zone" -> inst.getPlacement() != null
|
||||
&& matchesValue(values, inst.getPlacement().getAvailabilityZone());
|
||||
default -> true;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user