From 103172fd0ddcb920d17427b9a388bacd080ee4a5 Mon Sep 17 00:00:00 2001 From: Rony Xavier Date: Mon, 9 Aug 2021 13:38:51 -0400 Subject: [PATCH] Bug fix in the call of get_compliance_details_by_config_rule method Signed-off-by: Rony Xavier --- lib/heimdall_tools/aws_config_mapper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/heimdall_tools/aws_config_mapper.rb b/lib/heimdall_tools/aws_config_mapper.rb index e80fb66..44758e7 100644 --- a/lib/heimdall_tools/aws_config_mapper.rb +++ b/lib/heimdall_tools/aws_config_mapper.rb @@ -189,7 +189,7 @@ def add_results_to_config_rules(config_rules) response = @client.get_compliance_details_by_config_rule(config_rule_name: rule[:config_rule_name], limit: 100) rule_results = response.to_h[:evaluation_results] while response.next_token - response = @client.get_compliance_details_by_config_rule(next_token: response.next_token, limit: 100) + response = @client.get_compliance_details_by_config_rule(config_rule_name: rule[:config_rule_name], next_token: response.next_token, limit: 100) rule_results += response.to_h[:evaluation_results] end