File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -618,7 +618,7 @@ def __init__(
618
618
instance_type_for_volume_kms and instance_supports_kms (instance_type_for_volume_kms )
619
619
)
620
620
or instance_groups is not None
621
- and all (
621
+ and any (
622
622
[
623
623
instance_supports_kms (instance_group .instance_type )
624
624
for instance_group in instance_groups
Original file line number Diff line number Diff line change @@ -3862,7 +3862,7 @@ def create_endpoint_config_from_existing(
3862
3862
if new_kms_key is not None or existing_endpoint_config_desc .get ("KmsKeyId" ) is not None :
3863
3863
request ["KmsKeyId" ] = new_kms_key or existing_endpoint_config_desc .get ("KmsKeyId" )
3864
3864
3865
- supports_kms = all (
3865
+ supports_kms = any (
3866
3866
[
3867
3867
instance_supports_kms (production_variant ["InstanceType" ])
3868
3868
for production_variant in production_variants
@@ -4492,7 +4492,7 @@ def endpoint_from_production_variants(
4492
4492
str: The name of the created ``Endpoint``.
4493
4493
"""
4494
4494
4495
- supports_kms = all (
4495
+ supports_kms = any (
4496
4496
[
4497
4497
instance_supports_kms (production_variant ["InstanceType" ])
4498
4498
for production_variant in production_variants
You can’t perform that action at this time.
0 commit comments