-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop deprecated (CamelCase) aliases (#913)
Drop deprecated (CamelCase) aliases SUMMARY Complete the deprecation cycle on CamelCased aliases ISSUE TYPE Feature Pull Request COMPONENT NAME ec2_ami ec2_vpc_dhcp_option_info ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis <None>
- Loading branch information
Showing
6 changed files
with
23 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
breaking_changes: | ||
- ec2_ami - the parameter aliases ``DeviceName``, ``VirtualName`` and ``NoDevice`` were previously deprecated and have been removed, please use ``device_name``, ``virtual_name`` and ``no_device`` instead (https://github.com/ansible-collections/amazon.aws/pull/913). | ||
- ec2_vpc_dhcp_option_info - the parameter aliases ``DhcpOptionIds`` and ``DryRun`` were previously deprecated and have been removed, please use ``dhcp_options_ids`` and ``no_device`` instead (https://github.com/ansible-collections/amazon.aws/pull/913). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,9 @@ | |
--- | ||
module: ec2_ami | ||
version_added: 1.0.0 | ||
short_description: Create or destroy an image (AMI) in ec2 | ||
short_description: Create or destroy an image (AMI) in EC2 | ||
description: | ||
- Registers or deregisters ec2 images. | ||
- Registers or deregisters EC2 images. | ||
options: | ||
instance_id: | ||
description: | ||
|
@@ -80,25 +80,16 @@ | |
type: str | ||
description: | ||
- The device name. For example C(/dev/sda). | ||
- The C(DeviceName) alias had been deprecated and will be removed in | ||
release 5.0.0. | ||
required: yes | ||
aliases: ['DeviceName'] | ||
virtual_name: | ||
type: str | ||
description: | ||
- The virtual name for the device. | ||
- See the AWS documentation for more detail U(https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_BlockDeviceMapping.html). | ||
- The C(VirtualName) alias has been deprecated and will be removed in | ||
release 5.0.0. | ||
aliases: ['VirtualName'] | ||
no_device: | ||
type: bool | ||
description: | ||
- Suppresses the specified device included in the block device mapping of the AMI. | ||
- The C(NoDevice) alias has been deprecated and will be removed in | ||
release 5.0.0. | ||
aliases: ['NoDevice'] | ||
volume_type: | ||
type: str | ||
description: The volume type. Defaults to C(gp2) when not set. | ||
|
@@ -151,14 +142,14 @@ | |
- Set to simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the AMI and any instances that you launch from the AMI. | ||
type: str | ||
author: | ||
- "Evan Duffield (@scicoin-project) <[email protected]>" | ||
- "Constantin Bugneac (@Constantin07) <[email protected]>" | ||
- "Ross Williams (@gunzy83) <[email protected]>" | ||
- "Willem van Ketwich (@wilvk) <[email protected]>" | ||
- "Evan Duffield (@scicoin-project) <[email protected]>" | ||
- "Constantin Bugneac (@Constantin07) <[email protected]>" | ||
- "Ross Williams (@gunzy83) <[email protected]>" | ||
- "Willem van Ketwich (@wilvk) <[email protected]>" | ||
extends_documentation_fragment: | ||
- amazon.aws.aws | ||
- amazon.aws.ec2 | ||
- amazon.aws.tags.deprecated_purge | ||
- amazon.aws.aws | ||
- amazon.aws.ec2 | ||
- amazon.aws.tags.deprecated_purge | ||
''' | ||
|
||
# Thank you to iAcquire for sponsoring development of this module. | ||
|
@@ -703,15 +694,9 @@ def rename_item_if_exists(dict_object, attribute, new_attribute, child_node=None | |
|
||
def main(): | ||
mapping_options = dict( | ||
device_name=dict( | ||
type='str', aliases=['DeviceName'], required=True, | ||
deprecated_aliases=[dict(name='DeviceName', version='5.0.0', collection_name='amazon.aws')]), | ||
virtual_name=dict( | ||
type='str', aliases=['VirtualName'], | ||
deprecated_aliases=[dict(name='VirtualName', version='5.0.0', collection_name='amazon.aws')]), | ||
no_device=dict( | ||
type='bool', aliases=['NoDevice'], | ||
deprecated_aliases=[dict(name='NoDevice', version='5.0.0', collection_name='amazon.aws')]), | ||
device_name=dict(type='str', required=True), | ||
virtual_name=dict(type='str'), | ||
no_device=dict(type='bool'), | ||
volume_type=dict(type='str'), | ||
delete_on_termination=dict(type='bool'), | ||
snapshot_id=dict(type='str'), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
plugins/modules/ec2_ami.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_ami.py validate-modules:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_instance.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_key.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_vol.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_vpc_dhcp_option_info.py validate-modules:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_vpc_endpoint.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_vpc_net.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_vpc_route_table.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
plugins/modules/ec2_ami.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_ami.py validate-modules:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_instance.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_key.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_vol.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_vpc_dhcp_option_info.py validate-modules:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_vpc_endpoint.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_vpc_net.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_vpc_route_table.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
plugins/modules/ec2_ami.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_ami.py validate-modules:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_instance.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_key.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_vol.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_vpc_dhcp_option_info.py validate-modules:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_vpc_endpoint.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_vpc_net.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 | ||
plugins/modules/ec2_vpc_route_table.py pylint:collection-deprecated-version # Deprecation planned for 5.0.0 |