summaryrefslogtreecommitdiff
path: root/src/op_mode/firewall.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-05-12 08:56:54 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-05-12 06:57:41 +0000
commit47196ba9b4939ed00297088c757761406e9d562e (patch)
treee3971e1cd13fa692d7e6fe7fb3c4843687b6cdad /src/op_mode/firewall.py
parent5987a9a3475b60a9d544c664b4e1a78a8836e15b (diff)
downloadvyos-1x-47196ba9b4939ed00297088c757761406e9d562e.tar.gz
vyos-1x-47196ba9b4939ed00297088c757761406e9d562e.zip
T6329: firewall: use isinstance() in op-mode script
(cherry picked from commit b705adc40b761e338026b938d80398fdb281a197)
Diffstat (limited to 'src/op_mode/firewall.py')
-rwxr-xr-xsrc/op_mode/firewall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/firewall.py b/src/op_mode/firewall.py
index 3f8ba6fa1..15fbb65a2 100755
--- a/src/op_mode/firewall.py
+++ b/src/op_mode/firewall.py
@@ -531,7 +531,7 @@ def show_firewall_group(name=None):
continue
for idx, member in enumerate(members):
- if type(member) == str:
+ if isinstance(member, str):
# Only member, and no timeout:
val = member
timeout = "N/D"