Skip to content

Commit b5eaa5c

Browse files
committed
Remove possibly unnecessary code
1 parent 240162f commit b5eaa5c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def to_str(self, delete=False):
330330
""" Convert the rule back into syntactically correct iptables command """
331331
# Order is important
332332
order = ['-A', '-s', '-d', '!_-d', '-i', '!_-i', '-p', '-m', '-m2', '--icmp-type', '--state',
333-
'--dport', '--destination-port', '-o', '!_-o', '-j', '--save-mark', '--set-xmark', '--checksum',
333+
'--dport', '--destination-port', '-o', '!_-o', '-j', '--set-xmark', '--checksum',
334334
'--to-source', '--to-destination', '--mark']
335335
str = ''
336336
for k in order:
@@ -339,9 +339,6 @@ def to_str(self, delete=False):
339339
printable = printable.replace('!_-', '! -')
340340
if delete:
341341
printable = printable.replace('-A', '-D')
342-
if k == "--save-mark":
343-
str = "%s %s" % (str, printable)
344-
continue
345342
if str == '':
346343
str = "%s %s" % (printable, self.rule[k])
347344
else:

0 commit comments

Comments
 (0)