Detect unsupported statement:: directives with multiple names

(cherry picked from commit d61d998e3b)
This commit is contained in:
Petr Špaček 2022-06-24 10:00:59 +02:00
parent 4c53d6f906
commit a486e6e294
No known key found for this signature in database
GPG key ID: ABD587CDF06581AE

View file

@ -134,6 +134,12 @@ def domain_factory(domainname, domainlabel, todolist, grammar):
tags += nodes.Text(", ".join(self.isc_tags))
contentnode.insert(0, tags)
names = self.get_signatures()
if len(names) != 1:
raise NotImplementedError(
"statements with more than one name are not supported", names
)
name = domainname
label = domainlabel