diff options
author | Christian Breunig <christian@breunig.cc> | 2024-05-12 08:56:54 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-05-12 08:56:54 +0200 |
commit | b705adc40b761e338026b938d80398fdb281a197 (patch) | |
tree | ae3cc59243cc4b756049942a35a3379b07b4a745 | |
parent | 72c95ec1df8ad7be8a715b3338001349684cafa9 (diff) | |
download | vyos-1x-b705adc40b761e338026b938d80398fdb281a197.tar.gz vyos-1x-b705adc40b761e338026b938d80398fdb281a197.zip |
T6329: firewall: use isinstance() in op-mode script
-rwxr-xr-x | src/op_mode/firewall.py | 2 |
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" |