From 21c8dae83b832a8abde59e7ba94c74d6c7f8a128 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Fri, 8 Nov 2019 15:54:07 +0530 Subject: [PATCH] Correct usage of API call in aws_config_aggregator (#64581) update_resource and delete_resource takes and requires four argument. Signed-off-by: Abhijeet Kasurde --- lib/ansible/modules/cloud/amazon/aws_config_aggregator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/aws_config_aggregator.py b/lib/ansible/modules/cloud/amazon/aws_config_aggregator.py index fa2773ca3d4..d1aeeb29c84 100644 --- a/lib/ansible/modules/cloud/amazon/aws_config_aggregator.py +++ b/lib/ansible/modules/cloud/amazon/aws_config_aggregator.py @@ -128,7 +128,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']] ) @@ -151,7 +151,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']