From 5722e90a8dba17dea36a3c29955af5ca97b886f4 Mon Sep 17 00:00:00 2001 From: Joseph Torcasso Date: Wed, 29 Jun 2022 10:57:14 -0400 Subject: [PATCH] apply code suggestions --- changelogs/fragments/1239-lambda_info-return_list.yml | 4 ++-- plugins/modules/lambda_info.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/changelogs/fragments/1239-lambda_info-return_list.yml b/changelogs/fragments/1239-lambda_info-return_list.yml index c77423e9ff7..26710c0d132 100644 --- a/changelogs/fragments/1239-lambda_info-return_list.yml +++ b/changelogs/fragments/1239-lambda_info-return_list.yml @@ -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). diff --git a/plugins/modules/lambda_info.py b/plugins/modules/lambda_info.py index c3f38a923ec..e3d00ab08cc 100644 --- a/plugins/modules/lambda_info.py +++ b/plugins/modules/lambda_info.py @@ -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'