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:
parent
5e3fda5582
commit
21c8dae83b
1 changed files with 2 additions and 2 deletions
|
@ -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']
|
||||
|
|
Loading…
Reference in a new issue