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 <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2019-11-08 15:54:07 +05:30 committed by Sloane Hertel
parent 5e3fda5582
commit 21c8dae83b

View file

@ -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']