From 92f857d9676340dd474e7e5cb438ef4f51a852a5 Mon Sep 17 00:00:00 2001 From: brent s Date: Mon, 18 May 2020 05:42:44 -0400 Subject: [PATCH] ONE day i'll get initialization of subclasses/superclasses right. --- utils/he_ipv6/ra.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/utils/he_ipv6/ra.py b/utils/he_ipv6/ra.py index 2b5591e..03b1bf9 100644 --- a/utils/he_ipv6/ra.py +++ b/utils/he_ipv6/ra.py @@ -137,6 +137,10 @@ class RADVD(RA): tpl_name = 'radvd.conf.j2' def __init__(self, conf = None, tpl_name = None, tpl_dir = None): + if not conf: + conf = self.conf + if not tpl_name: + tpl_name = self.tpl_name super().__init__(conf = conf, tpl_name = tpl_name, tpl_dir = tpl_dir) self.conf.ext_init() @@ -147,5 +151,9 @@ class DNSMasq(RA): tpl_name = 'dnsmasq.include.j2' def __init__(self, conf = None, tpl_name = None, tpl_dir = None): + if not conf: + conf = self.conf + if not tpl_name: + tpl_name = self.tpl_name super().__init__(conf = conf, tpl_name = tpl_name, tpl_dir = tpl_dir) self.conf.ext_init()