variants: Remove redundant check
This situation is handled by schema validation already, so this condition can never really fire. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
ad120f2608
commit
6ce88630ec
@ -200,9 +200,6 @@ class VariantsXmlParser(object):
|
||||
continue
|
||||
result[variant.id] = variant
|
||||
|
||||
for variant_node in self.tree.xpath("/variants/variant[not(@type='variant' or @type='addon' or @type='layered-product')]"):
|
||||
raise RuntimeError("Invalid variant type at the top-level: %s" % variant_node.attrib["type"])
|
||||
|
||||
return result
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user