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