mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
serverless - deprecating unused param (#2845)
* deprecating unused param * added changelog fragment * deprecate param in arg_spec * Update plugins/modules/cloud/misc/serverless.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
db713bd0f5
commit
2768eda895
2 changed files with 5 additions and 8 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
deprecated_features:
|
||||||
|
- serverless - deprecating parameter ``functions`` because it was not used in the code (https://github.com/ansible-collections/community.general/pull/2845).
|
|
@ -38,6 +38,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- A list of specific functions to deploy.
|
- A list of specific functions to deploy.
|
||||||
- If this is not provided, all functions in the service will be deployed.
|
- If this is not provided, all functions in the service will be deployed.
|
||||||
|
- Deprecated parameter, it will be removed in community.general 5.0.0.
|
||||||
type: list
|
type: list
|
||||||
elements: str
|
elements: str
|
||||||
default: []
|
default: []
|
||||||
|
@ -79,13 +80,6 @@ EXAMPLES = r'''
|
||||||
service_path: '{{ project_dir }}'
|
service_path: '{{ project_dir }}'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Deploy specific functions
|
|
||||||
community.general.serverless:
|
|
||||||
service_path: '{{ project_dir }}'
|
|
||||||
functions:
|
|
||||||
- my_func_one
|
|
||||||
- my_func_two
|
|
||||||
|
|
||||||
- name: Deploy a project, then pull its resource list back into Ansible
|
- name: Deploy a project, then pull its resource list back into Ansible
|
||||||
community.general.serverless:
|
community.general.serverless:
|
||||||
stage: dev
|
stage: dev
|
||||||
|
@ -165,7 +159,8 @@ def main():
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
service_path=dict(type='path', required=True),
|
service_path=dict(type='path', required=True),
|
||||||
state=dict(type='str', default='present', choices=['absent', 'present']),
|
state=dict(type='str', default='present', choices=['absent', 'present']),
|
||||||
functions=dict(type='list', elements='str'),
|
functions=dict(type='list', elements='str',
|
||||||
|
removed_in_version="5.0.0", removed_from_collection="community.general"),
|
||||||
region=dict(type='str', default=''),
|
region=dict(type='str', default=''),
|
||||||
stage=dict(type='str', default=''),
|
stage=dict(type='str', default=''),
|
||||||
deploy=dict(type='bool', default=True),
|
deploy=dict(type='bool', default=True),
|
||||||
|
|
Loading…
Reference in a new issue