1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

serverless - deprecating unused param (#2845) (#2847)

* 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>
(cherry picked from commit 2768eda895)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot] 2021-06-20 12:14:37 +00:00 committed by GitHub
parent 5308f61b78
commit 1f6aa62210
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 8 deletions

View file

@ -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).

View file

@ -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),