Deprecate ec2_ami_find (#32501)

pull/32712/head
Prasad Katti 7 years ago committed by Will Thames
parent 2f93b7bcb5
commit 306c3508b2

@ -15,6 +15,7 @@ Ansible Changes By Release
* The ``with_<lookup>`` loops are deprecated in favor of the new ``loop`` keyword * The ``with_<lookup>`` loops are deprecated in favor of the new ``loop`` keyword
#### Deprecated Modules (to be removed in 2.9): #### Deprecated Modules (to be removed in 2.9):
* ec2_ami_find
#### Removed Modules (previously deprecated): #### Removed Modules (previously deprecated):
* accelerate * accelerate
@ -46,6 +47,7 @@ Ansible Changes By Release
* aws_ssm_parameter_store * aws_ssm_parameter_store
* digital_ocean_sshkey_facts * digital_ocean_sshkey_facts
* ec2_ami_facts
#### Windows #### Windows

@ -7,7 +7,7 @@ __metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1', ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'], 'status': ['deprecated'],
'supported_by': 'community'} 'supported_by': 'community'}
@ -16,6 +16,7 @@ DOCUMENTATION = '''
module: ec2_ami_find module: ec2_ami_find
version_added: '2.0' version_added: '2.0'
short_description: Searches for AMIs to obtain the AMI ID and other information short_description: Searches for AMIs to obtain the AMI ID and other information
deprecated: Deprecated in 2.5. Use M(ec2_ami_facts) instead.
description: description:
- Returns list of matching AMIs with AMI ID, along with other useful information - Returns list of matching AMIs with AMI ID, along with other useful information
- Can search AMIs with different owners - Can search AMIs with different owners
@ -348,6 +349,8 @@ def main():
supports_check_mode=True, supports_check_mode=True,
) )
module.deprecate("The 'ec2_ami_find' module has been deprecated. Use 'ec2_ami_facts' instead.", version=2.9)
if not HAS_BOTO: if not HAS_BOTO:
module.fail_json(msg='boto required for this module, install via pip or your package manager') module.fail_json(msg='boto required for this module, install via pip or your package manager')

@ -1,3 +1,4 @@
lib/ansible/modules/cloud/amazon/_ec2_ami_find.py
lib/ansible/modules/cloud/amazon/_ec2_ami_search.py lib/ansible/modules/cloud/amazon/_ec2_ami_search.py
lib/ansible/modules/cloud/amazon/_ec2_remote_facts.py lib/ansible/modules/cloud/amazon/_ec2_remote_facts.py
lib/ansible/modules/cloud/amazon/_ec2_vpc.py lib/ansible/modules/cloud/amazon/_ec2_vpc.py
@ -7,7 +8,6 @@ lib/ansible/modules/cloud/amazon/cloudformation.py
lib/ansible/modules/cloud/amazon/cloudfront_facts.py lib/ansible/modules/cloud/amazon/cloudfront_facts.py
lib/ansible/modules/cloud/amazon/dynamodb_table.py lib/ansible/modules/cloud/amazon/dynamodb_table.py
lib/ansible/modules/cloud/amazon/ec2_ami_copy.py lib/ansible/modules/cloud/amazon/ec2_ami_copy.py
lib/ansible/modules/cloud/amazon/ec2_ami_find.py
lib/ansible/modules/cloud/amazon/ec2_elb.py lib/ansible/modules/cloud/amazon/ec2_elb.py
lib/ansible/modules/cloud/amazon/ec2_elb_lb.py lib/ansible/modules/cloud/amazon/ec2_elb_lb.py
lib/ansible/modules/cloud/amazon/ec2_eni_facts.py lib/ansible/modules/cloud/amazon/ec2_eni_facts.py

Loading…
Cancel
Save