Skip to content

Commit

Permalink
apply code suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
jatorcasso committed Jun 29, 2022
1 parent 11c8402 commit 5722e90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions changelogs/fragments/1239-lambda_info-return_list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ minor_changes:
- lambda_info - now returns basic configuration information of each lambda function, regardless of query (https://github.com/ansible-collections/community.aws/pull/1239).

deprecated_features:
- lambda_info - The ``function`` return key returns a dictionary of dictionaries and has been deprecated. In release 6.0.0 this module will instead
return ``functions`` which returns a list of dictionaries (https://github.com/ansible-collections/community.aws/pull/1239).
- lambda_info - The ``function`` return key returns a dictionary of dictionaries and has been deprecated. In a release after 2025-01-01, this key will
be removed in favor of ``functions``, which returns a list of dictionaries (https://github.com/ansible-collections/community.aws/pull/1239).
2 changes: 1 addition & 1 deletion plugins/modules/lambda_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def main():

# Deprecate previous return key of `function`, as it was a dict of dicts, as opposed to a list of dicts
module.deprecate(
"The returned key 'function', which returned a dictionary of dictionaries, is deprecated and will be replaced by 'lambda_info',"
"The returned key 'function', which returned a dictionary of dictionaries, is deprecated and will be replaced by 'functions',"
" which returns a list of dictionaries. Both keys are returned for now.",
date='2025-01-01',
collection_name='community.aws'
Expand Down

0 comments on commit 5722e90

Please sign in to comment.