Closed andreiboost closed 9 months ago
Thanks @andreiboost for submitting this! Would you be willing to open a PR to fix this bug?
Perhaps, my only reservation is that I'd like to add tests for this but those can be time consuming to add, especially for a one liner change like this appears to be.
Summary
rds_instance cannot clear all existing cloudwatch log exports by setting
enable_cloudwatch_logs_exports: []
.The root cause appears to be this test which evaluates to False for empty lists. I believe this should be
if cloudwatch_logs_enabled is not None:
instead. I've linked to version 5 but all are the same, including the main branch.Issue Type
Bug Report
Component Name
rds_instance
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
Ubuntu
Steps to Reproduce
Create database with some cloudwatch log exports, for example
enable_cloudwatch_logs_exports: ['postgresql', 'upgrade']
. Try to delete themRunning with something else, like
['upgrade']
removespostgresql
as expected.Expected Results
Changed status, log exports to be deleted.
Actual Results
Cropped results from task
No changed status, no changes attempted.
Code of Conduct