Skip to content

Commit

Permalink
fix: fixed ecr getting policy
Browse files Browse the repository at this point in the history
  • Loading branch information
1101-1 committed Dec 13, 2024
1 parent 7a951fc commit 5f100a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/aws/fix_plugin_aws/resource/ecr.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def fetch_lifecycle_policy(repository: AwsEcrRepository) -> None:
"get-lifecycle-policy",
"lifecyclePolicyText",
repositoryName=repository.name,
expected_errors=["LifecyclePolicyNotFoundException"],
expected_errors=["LifecyclePolicyNotFoundException", "RepositoryNotFoundException"],
):
repository.lifecycle_policy = sort_json(json.loads(policy), sort_list=True) # type: ignore

Expand Down

0 comments on commit 5f100a6

Please sign in to comment.