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:
Lubomír Sedlář 2017-05-03 14:45:43 +02:00
parent ad120f2608
commit 6ce88630ec

View File

@ -200,9 +200,6 @@ class VariantsXmlParser(object):
continue continue
result[variant.id] = variant 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 return result