Skip to content

Commit

Permalink
cloudfront_cache_policy: Fixed linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Zozman committed Jan 18, 2024
1 parent 6842f43 commit 3bc00bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/modules/cloudfront_cache_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,7 @@ def __init__(self, module):

def find_cache_policy(self, name):
try:
# Only list the custom policies as those are the only ones we can change
policies = self.client.list_cache_policies(Type="custom").get("CachePolicyList", {}).get("Items", [])
policies = self.client.list_cache_policies()["CachePolicyList"]["Items"]

for policy in policies:
if policy["CachePolicy"]["CachePolicyConfig"]["Name"] == name:
Expand Down

0 comments on commit 3bc00bc

Please sign in to comment.