From 4035e1fd6bbcc2376f34487f8b9f987e5cf1b75b Mon Sep 17 00:00:00 2001 From: Sergey Trukhin Date: Tue, 26 Mar 2019 22:00:19 +0600 Subject: [PATCH] rds_instance - Fixed CloudWatch logs export for existing RDS instances (#52989) --- lib/ansible/modules/cloud/amazon/rds_instance.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/cloud/amazon/rds_instance.py b/lib/ansible/modules/cloud/amazon/rds_instance.py index ae6da7947f..ad97149013 100644 --- a/lib/ansible/modules/cloud/amazon/rds_instance.py +++ b/lib/ansible/modules/cloud/amazon/rds_instance.py @@ -875,6 +875,8 @@ def get_changing_options_with_inconsistent_keys(modify_params, instance, purge_c if option == 'ProcessorFeatures' and desired_option == []: changing_params['UseDefaultProcessorFeatures'] = True elif option == 'CloudwatchLogsExportConfiguration': + current_option = set(current_option.get('LogTypesToEnable', [])) + desired_option = set(desired_option) format_option = {'EnableLogTypes': [], 'DisableLogTypes': []} format_option['EnableLogTypes'] = list(desired_option.difference(current_option)) if purge_cloudwatch_logs: