]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Detect unsupported statement:: directives with multiple names
authorPetr Špaček <pspacek@isc.org>
Fri, 24 Jun 2022 08:00:59 +0000 (10:00 +0200)
committerPetr Špaček <pspacek@isc.org>
Fri, 1 Jul 2022 06:59:23 +0000 (08:59 +0200)
doc/arm/_ext/iscconf.py

index f1b4c7e1184eee40a201d37dbc0c6c81076abf32..0edd285965ee8e9594caed3f308acec3f29fc659 100644 (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