chiark / gitweb /
make-secnet-sites: Set .type in the `level' base class
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 18 Oct 2019 20:32:47 +0000 (21:32 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 24 Oct 2019 18:16:16 +0000 (19:16 +0100)
We have one instance of directly this, the root node.  If it has an
error, the lack of the .type would cause a stack trace while trying to
print the error message.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
make-secnet-sites

index f32267824cbd954177416cb9bcfac3c9582e73f6..65baa11c0b98b3d44d2e5d6f8fb9859cf8f86fda 100755 (executable)
@@ -257,6 +257,7 @@ class level:
        allow_properties={}
        require_properties={}
        def __init__(self,w):
+               self.type=w[0]
                self.name=w[1]
                self.properties={}
                self.children={}