From 105bd84be6ef548c3364089b9f4ed67d401e404a Mon Sep 17 00:00:00 2001 From: Jan Rodak Date: Wed, 22 Nov 2023 14:10:23 +0100 Subject: [PATCH] Fix attribute in reference element of OVAL definition --- ssg/oval_object_model/oval_entities/definition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssg/oval_object_model/oval_entities/definition.py b/ssg/oval_object_model/oval_entities/definition.py index a28164dc55b..c4a2a7c0da9 100644 --- a/ssg/oval_object_model/oval_entities/definition.py +++ b/ssg/oval_object_model/oval_entities/definition.py @@ -461,4 +461,4 @@ def translate_id(self, translator, store_defname=False): super(Definition, self).translate_id(translator, store_defname) self.criteria.translate_id(translator) if store_defname: - self.metadata.add_reference(self.id_, translator.content_id) + self.metadata.add_reference(self.name, translator.content_id)