mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
rds_instance - Fixed CloudWatch logs export for existing RDS instances (#52989)
This commit is contained in:
parent
cf69ec5db0
commit
4035e1fd6b
1 changed files with 2 additions and 0 deletions
|
@ -875,6 +875,8 @@ def get_changing_options_with_inconsistent_keys(modify_params, instance, purge_c
|
||||||
if option == 'ProcessorFeatures' and desired_option == []:
|
if option == 'ProcessorFeatures' and desired_option == []:
|
||||||
changing_params['UseDefaultProcessorFeatures'] = True
|
changing_params['UseDefaultProcessorFeatures'] = True
|
||||||
elif option == 'CloudwatchLogsExportConfiguration':
|
elif option == 'CloudwatchLogsExportConfiguration':
|
||||||
|
current_option = set(current_option.get('LogTypesToEnable', []))
|
||||||
|
desired_option = set(desired_option)
|
||||||
format_option = {'EnableLogTypes': [], 'DisableLogTypes': []}
|
format_option = {'EnableLogTypes': [], 'DisableLogTypes': []}
|
||||||
format_option['EnableLogTypes'] = list(desired_option.difference(current_option))
|
format_option['EnableLogTypes'] = list(desired_option.difference(current_option))
|
||||||
if purge_cloudwatch_logs:
|
if purge_cloudwatch_logs:
|
||||||
|
|
Loading…
Reference in a new issue