mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* marked parameters for deprecation in c.g. 5.0.0
* added changelog fragment
* deprecate params in arg_spec
* doc adjusment per PR
(cherry picked from commit 519411e026
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
29636c1cc8
commit
5308f61b78
2 changed files with 10 additions and 4 deletions
|
@ -0,0 +1,2 @@
|
|||
deprecated_features:
|
||||
- ali_instance_info - marked removal version of deprecated parameters ``availability_zone`` and ``instance_names`` (https://github.com/ansible-collections/community.general/issues/2429).
|
|
@ -35,12 +35,14 @@ description:
|
|||
options:
|
||||
availability_zone:
|
||||
description:
|
||||
- (Deprecated) Aliyun availability zone ID in which to launch the instance. Please use filter item 'zone_id' instead.
|
||||
- Aliyun availability zone ID in which to launch the instance.
|
||||
- Deprecated parameter, it will be removed in community.general 5.0.0. Please use filter item I(zone_id) instead.
|
||||
aliases: ['alicloud_zone']
|
||||
type: str
|
||||
instance_names:
|
||||
description:
|
||||
- (Deprecated) A list of ECS instance names. Please use filter item 'instance_name' instead.
|
||||
- A list of ECS instance names.
|
||||
- Deprecated parameter, it will be removed in community.general 5.0.0. Please use filter item I(instance_name) instead.
|
||||
aliases: ["names"]
|
||||
type: list
|
||||
elements: str
|
||||
|
@ -374,8 +376,10 @@ except ImportError:
|
|||
def main():
|
||||
argument_spec = ecs_argument_spec()
|
||||
argument_spec.update(dict(
|
||||
availability_zone=dict(aliases=['alicloud_zone']),
|
||||
instance_ids=dict(type='list', elements='str', aliases=['ids']),
|
||||
availability_zone=dict(aliases=['alicloud_zone'],
|
||||
removed_in_version="5.0.0", removed_from_collection="community.general"),
|
||||
instance_ids=dict(type='list', elements='str', aliases=['ids'],
|
||||
removed_in_version="5.0.0", removed_from_collection="community.general"),
|
||||
instance_names=dict(type='list', elements='str', aliases=['names']),
|
||||
name_prefix=dict(type='str'),
|
||||
tags=dict(type='dict', aliases=['instance_tags']),
|
||||
|
|
Loading…
Reference in a new issue