From 802f1510eb6d621f9c760f28b83f16a4781b8d93 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 23 Oct 2019 10:27:05 -0700 Subject: [PATCH] tighten if statements --- jc/parsers/iptables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jc/parsers/iptables.py b/jc/parsers/iptables.py index bbc0c0d3..bb0a1328 100644 --- a/jc/parsers/iptables.py +++ b/jc/parsers/iptables.py @@ -346,7 +346,7 @@ def parse(data): continue - if line.find('target') == 0 or line.find('pkts') == 1: + elif line.find('target') == 0 or line.find('pkts') == 1: headers = [] headers = [h for h in ' '.join(line.strip().split()).split() if h] headers.append("options")