diff --git a/plugins/aws/fix_plugin_aws/collector.py b/plugins/aws/fix_plugin_aws/collector.py index d1de013277..01c27acd92 100644 --- a/plugins/aws/fix_plugin_aws/collector.py +++ b/plugins/aws/fix_plugin_aws/collector.py @@ -381,7 +381,6 @@ def rm_leaf_nodes(cls: Any, ignore_kinds: Optional[Type[Any]] = None, check_pred self.graph.remove_node(node) rm_leaf_nodes(bedrock.AwsBedrockFoundationModel, check_pred=False) - rm_leaf_nodes(guardduty.AwsGuardDutyFinding, check_pred=False) # remove regions that are not in use self.graph.remove_recursively(builder.nodes(AwsRegion, lambda r: r.compute_region_in_use(builder) is False))