Skip to content

Commit 726248d

Browse files
committed
fix boolean in ast cause subnetting import to fail (#161).
1 parent 32ac804 commit 726248d

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
linuxmuster-base7 (7.3.14-0) lmn73; urgency=low
2+
3+
* fix boolean in ast cause subnetting import to fail (#161).
4+
5+
-- Thomas Schmitt <thomas@linuxmuster.net> Tue, 22 Apr 2025 15:12:44 +0200
6+
17
linuxmuster-base7 (7.3.13-0) lmn73; urgency=low
28

39
* fix skip firewall setup (6ecd16b).

lib/setup.d/z_final.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
#
33
# final tasks
44
# thomas@linuxmuster.net
5-
# 20240219
6-
#
5+
# 20250422
76

87
import configparser
98
import environment
@@ -12,8 +11,8 @@
1211
import re
1312
import sys
1413

15-
from functions import getSetupValue, mySetupLogfile, printScript, readTextfile
16-
from functions import subProc, waitForFw, writeTextfile
14+
from functions import getSetupValue, mySetupLogfile, printScript, readTextfile, \
15+
subProc, waitForFw, writeTextfile
1716

1817
logfile = mySetupLogfile(__file__)
1918

@@ -72,7 +71,7 @@
7271

7372
# wait for fw
7473
skipfw = getSetupValue('skipfw')
75-
if skipfw == 'False':
74+
if not skipfw:
7675
try:
7776
waitForFw(wait=30)
7877
except Exception as error:

sbin/linuxmuster-opnsense-reset

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# reset opnsense configuration to setup state
44
# thomas@linuxmuster.net
5-
# 20220601
5+
# 20250422
66
#
77

88
import environment
@@ -12,13 +12,12 @@ import sys
1212
import time
1313

1414
from functions import createServerCert, datetime, enterPassword, firewallApi, \
15-
getSetupValue, printScript, randomPassword, sshExec, subProc, writeTextfile, \
16-
waitForFw
15+
getSetupValue, printScript, sshExec, subProc, writeTextfile, waitForFw
1716

1817

1918
# check first if firewall is skipped by setup
2019
skipfw = getSetupValue('skipfw')
21-
if skipfw == 'True':
20+
if skipfw:
2221
printScript('Firewall is skipped by setup!')
2322
sys.exit(0)
2423

share/firewall/opnsense/create-keytab.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# create web proxy sso keytab
44
# thomas@linuxmuster.net
5-
# 20240219
5+
# 20250422
66
#
77

88
import environment
@@ -11,16 +11,12 @@
1111
import subprocess
1212
import sys
1313

14-
from functions import datetime
15-
from functions import firewallApi
16-
from functions import getSetupValue
17-
from functions import printScript
18-
from functions import readTextfile
14+
from functions import datetime, firewallApi, getSetupValue, printScript, readTextfile
1915

2016

2117
# check first if firewall is skipped by setup
2218
skipfw = getSetupValue('skipfw')
23-
if skipfw == 'True':
19+
if skipfw:
2420
printScript('Firewall is skipped by setup!')
2521
sys.exit(0)
2622

0 commit comments

Comments
 (0)