Skip to content

Commit fcc514d

Browse files
committed
Remove possibly unnecessary code
1 parent 8e4e542 commit fcc514d

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
@@ -382,7 +382,7 @@ def to_str(self, delete=False):
382382
""" Convert the rule back into syntactically correct iptables command """
383383
# Order is important
384384
order = ['-A', '-s', '-d', '!_-d', '-i', '!_-i', '-p', '-m', '-m2', '--icmp-type', '--state',
385-
'--dport', '--destination-port', '-o', '!_-o', '-j', '--save-mark', '--set-xmark', '--checksum',
385+
'--dport', '--destination-port', '-o', '!_-o', '-j', '--set-xmark', '--checksum',
386386
'--to-source', '--to-destination', '--mark']
387387
str = ''
388388
for k in order:
@@ -391,9 +391,6 @@ def to_str(self, delete=False):
391391
printable = printable.replace('!_-', '! -')
392392
if delete:
393393
printable = printable.replace('-A', '-D')
394-
if k == "--save-mark":
395-
str = "%s %s" % (str, printable)
396-
continue
397394
if str == '':
398395
str = "%s %s" % (printable, self.rule[k])
399396
else:

0 commit comments

Comments
 (0)