Skip to content

Commit d6fcab1

Browse files
Fix: improper order in if-else oneliner
1 parent 7a31926 commit d6fcab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/validation/create_pcap_file/netsniff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def start(self, startup_wait=STARTUP_WAIT):
6161
str(self.interface), # FIXME: It is not a proper interface name to be used here
6262
"--out",
6363
self.pcap_file,
64-
if filter f"-f {self.filter}" else "",
64+
f"-f {self.filter}" if filter else "",
6565
]
6666
logger.info(f"Running command: {' '.join(cmd)}")
6767
self.netsniff_process = connection.start_process(

0 commit comments

Comments
 (0)