Set default tmark to pass coverage tests

Signed-off-by: Samuel Bernardo <samuel@lip.pt>
This commit is contained in:
Samuel Bernardo 2020-12-06 18:12:34 +00:00 committed by Brian May
parent 6b87ad3fc7
commit 7c338866bf

View File

@ -152,7 +152,7 @@ class Method(BaseMethod):
def setup_firewall(self, port, dnsport, nslist, family, subnets, udp,
user):
if self.firewall.tmark is None:
if self.firewall is None:
tmark = '1'
else:
tmark = self.firewall.tmark