Skip to content

Commit

Permalink
ecs_ecr - remove deprecated delete_policy option (ansible-collections…
Browse files Browse the repository at this point in the history
…#1161)

ecs_ecr - remove deprecated delete_policy option

SUMMARY
Remove the deprecated delete_policy option.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
ecs_ecr
ADDITIONAL INFORMATION
See also: ansible/ansible#48997

Reviewed-by: Markus Bergholz <[email protected]>
  • Loading branch information
tremble authored May 26, 2022
1 parent 355908c commit 6005c12
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ecs_ecr.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@
purge_policy:
description:
- If yes, remove the policy from the repository.
- Alias C(delete_policy) has been deprecated and will be removed after 2022-06-01.
- Defaults to C(false).
required: false
type: bool
aliases: [ delete_policy ]
image_tag_mutability:
description:
- Configure whether repository should be mutable (ie. an already existing tag can be overwritten) or not.
Expand Down Expand Up @@ -536,8 +534,7 @@ def main():
policy=dict(required=False, type='json'),
image_tag_mutability=dict(required=False, choices=['mutable', 'immutable'],
default='mutable'),
purge_policy=dict(required=False, type='bool', aliases=['delete_policy'],
deprecated_aliases=[dict(name='delete_policy', date='2022-06-01', collection_name='community.aws')]),
purge_policy=dict(required=False, type='bool'),
lifecycle_policy=dict(required=False, type='json'),
purge_lifecycle_policy=dict(required=False, type='bool'),
scan_on_push=(dict(required=False, type='bool', default=False))
Expand Down

0 comments on commit 6005c12

Please sign in to comment.