[2.9] Correct usage of API call in aws_config_aggregator

update_resource and delete_resource takes and requires four argument.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 21c8dae83b)
pull/64756/head
Abhijeet Kasurde 5 years ago committed by Matt Clay
parent cef3036179
commit 3628c9c07e

@ -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).

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

Loading…
Cancel
Save