Skip to content

Commit

Permalink
Make deprecated keys_attr param ignored in aws_kms_info (ansible-coll…
Browse files Browse the repository at this point in the history
…ections#838)

Make deprecated keys_attr param ignored in aws_kms_info

SUMMARY
Make deprecated keys_attr param ignored in aws_kms_info as planned for 3.0.0
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
aws_kms_info
ADDITIONAL INFORMATION

Reviewed-by: Markus Bergholz <[email protected]>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: None <None>
  • Loading branch information
marknet15 authored and abikouo committed Sep 18, 2023
1 parent 4413bc6 commit 888000a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aws_kms_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,10 +470,9 @@ def main():
# We originally returned "keys"
if module.params['keys_attr']:
module.deprecate("Returning results in the 'keys' attribute conflicts with the builtin keys() method on "
"dicts and as such is deprecated. Please use the kms_keys attribute. This warning can be "
"dicts and as such is deprecated and is now ignored. Please use the kms_keys attribute. This warning can be "
"silenced by setting keys_attr to False.",
version='3.0.0', collection_name='community.aws')
ret_params.update(dict(keys=filtered_keys))
module.exit_json(**ret_params)


Expand Down

0 comments on commit 888000a

Please sign in to comment.