You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
rds_instance - Allow empty enable_cloudwatch_logs_exports
SUMMARY
Fixes#1879 and adds some tests for the enable_cloudwatch_logs_exports parameter.
ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
rds_instance
ADDITIONAL INFORMATION
I had to add retries before the assertions, the reason is two fold:
It's very likely no changes at all are picked up by rds_instance_info if it runs right after modifying the RDS.
The API returns 400 if you attempt to modify something else before the previous modification was done, making the following non-check_mode test fail.
In my tests, it usually takes about a minute for the modifications to complete, so 200 total seconds should be more than enough.
Reviewed-by: Alina Buzachis
Reviewed-by: Andrei Costescu
Reviewed-by: Mandar Kulkarni <[email protected]>
Reviewed-by: Helen Bailey <[email protected]>
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 them
Running 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
The text was updated successfully, but these errors were encountered: