summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-05-12 08:56:54 +0200
committerChristian Breunig <christian@breunig.cc>2024-05-12 08:56:54 +0200
commitb705adc40b761e338026b938d80398fdb281a197 (patch)
treeae3cc59243cc4b756049942a35a3379b07b4a745
parent72c95ec1df8ad7be8a715b3338001349684cafa9 (diff)
downloadvyos-1x-b705adc40b761e338026b938d80398fdb281a197.tar.gz
vyos-1x-b705adc40b761e338026b938d80398fdb281a197.zip
T6329: firewall: use isinstance() in op-mode script
-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"