Skip to content

Commit

Permalink
Remove deprecated "facts" aliases (ansible-collections#814)
Browse files Browse the repository at this point in the history
Remove deprecated "facts" aliases

SUMMARY
Modules named "facts.py" that do not return ansible_facts were renamed to "info.py" in 2.9. Remove these aliases now that the deprecation period is over.
This PR should be included in 3.0.0 of the collection.
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
*_facts.py

Reviewed-by: Mark Chappell <None>
Reviewed-by: Jill R <None>
Reviewed-by: None <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@68aaa70
  • Loading branch information
jillr authored and alinabuzachis committed Sep 9, 2022
1 parent aedc7fb commit 9c853df
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion plugins/modules/rds_snapshot_facts.py

This file was deleted.

3 changes: 0 additions & 3 deletions plugins/modules/rds_snapshot_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
description:
- Obtain information about one or more RDS snapshots. These can be for unclustered snapshots or snapshots of clustered DBs (Aurora).
- Aurora snapshot information may be obtained if no identifier parameters are passed or if one of the cluster parameters are passed.
- This module was called C(rds_snapshot_facts) before Ansible 2.9. The usage did not change.
options:
db_snapshot_identifier:
description:
Expand Down Expand Up @@ -373,8 +372,6 @@ def main():
supports_check_mode=True,
mutually_exclusive=[['db_snapshot_identifier', 'db_instance_identifier', 'db_cluster_identifier', 'db_cluster_snapshot_identifier']]
)
if module._name == 'rds_snapshot_facts':
module.deprecate("The 'rds_snapshot_facts' module has been renamed to 'rds_snapshot_info'", date='2021-12-01', collection_name='community.aws')

conn = module.client('rds', retry_decorator=AWSRetry.jittered_backoff(retries=10))
results = dict()
Expand Down

0 comments on commit 9c853df

Please sign in to comment.