diff --git a/changelogs/fragments/64581-aws_config_aggregator_fix.yml b/changelogs/fragments/64581-aws_config_aggregator_fix.yml new file mode 100644 index 00000000000..21deaa42bdb --- /dev/null +++ b/changelogs/fragments/64581-aws_config_aggregator_fix.yml @@ -0,0 +1,2 @@ +minor_changes: +- Fixes update_resource and delete_resource API for correct number of arguments in aws_config_aggregator (https://github.com/ansible/ansible/pull/64581). diff --git a/lib/ansible/modules/cloud/amazon/aws_config_aggregator.py b/lib/ansible/modules/cloud/amazon/aws_config_aggregator.py index c255d9ae1af..4195ce8c8b0 100644 --- a/lib/ansible/modules/cloud/amazon/aws_config_aggregator.py +++ b/lib/ansible/modules/cloud/amazon/aws_config_aggregator.py @@ -114,7 +114,7 @@ def create_resource(client, module, params, result): module.fail_json_aws(e, msg="Couldn't create AWS Config configuration aggregator") -def update_resource(client, module, resource_type, params, result): +def update_resource(client, module, params, result): current_params = client.describe_configuration_aggregators( ConfigurationAggregatorNames=[params['name']] ) @@ -137,7 +137,7 @@ def update_resource(client, module, resource_type, params, result): module.fail_json_aws(e, msg="Couldn't create AWS Config configuration aggregator") -def delete_resource(client, module, resource_type, params, result): +def delete_resource(client, module, params, result): try: client.delete_configuration_aggregator( ConfigurationAggregatorName=params['ConfigurationAggregatorName']