Skip to content

Commit

Permalink
Update eks_test_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Koc committed May 27, 2022
1 parent cdd29e5 commit 50642bd
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/providers/amazon/aws/utils/eks_test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,10 @@ def region_matches_partition(region: str, partition: str) -> bool:
("us-gov-iso-b-", "aws-iso-b"),
]

return next(
(
partition == expected_partition
for prefix, expected_partition in valid_matches
if region.startswith(prefix)
),
partition == "aws",
)
for prefix, expected_partition in valid_matches:
if region.startswith(prefix):
return partition == expected_partition
return partition == "aws"


def _input_builder(options: InputTypes, minimal: bool) -> Dict:
Expand Down

0 comments on commit 50642bd

Please sign in to comment.