-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lambda - Add support for purge_tags #1202
lambda - Add support for purge_tags #1202
Conversation
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
# We're done | ||
module.exit_json(changed=changed, **camel_dict_to_snake_dict(response)) | ||
module.exit_json(changed=changed, **response) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we axe the format_response
method by using ignore_list
for the tags?
module.exit_json(changed=changed, **response) | |
module.exit_json(changed=changed, **camel_dict_to_snake_dict(response, ignore_list=['Tags']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In theory, yes.
However, I prefer splitting it out because we have two places where we're making the same transformation. By turning it into a function we reduce the chance of introducing inconsistent behaviour in a future change.
For example: When making this change I initially missed that this transformation was happening in two different spots!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a minor comment but otherwise LGTM
lambda - Add support for purge_tags SUMMARY Use tagging fragment Add purge_tags Add resource_tags alias to tags fix bug with returned tag names getting snake cased fix bug where the lambda module was modifying tags in check mode Tweak tagging to require an explicit tags: {} to remove tags ISSUE TYPE Bugfix Pull Request Docs Pull Request Feature Pull Request COMPONENT NAME lambda ADDITIONAL INFORMATION Reviewed-by: Joseph Torcasso <None> Reviewed-by: Mark Chappell <None> This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections@982580a
add pytest-forked to test requirements SUMMARY ansible-test is using pytest --forked we need the sub-module installed ISSUE TYPE Bugfix Pull Request COMPONENT NAME test-requirements.txt ADDITIONAL INFORMATION See also: ansible/ansible#76679 Reviewed-by: Alina Buzachis <None>
…s#1199) ec2_instance - validate options on tower_callback Depends-On: ansible-collections#1202 SUMMARY Validate options for tower_callback parameter Set tower_callback.set_password (the password) to no_log=True ISSUE TYPE Bugfix Pull Request COMPONENT NAME ec2_instance ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis <None>
SUMMARY
tags: {}
to remove tagsISSUE TYPE
COMPONENT NAME
lambda
ADDITIONAL INFORMATION