mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Lint
This commit is contained in:
parent
13593340f2
commit
df7d44bc3a
@ -141,7 +141,7 @@ def check_iptables_legacy():
|
||||
|
||||
if iptables_path is None:
|
||||
print("Error: 'iptables' not found in PATH")
|
||||
sys.exit(1) # Exit with error code 1
|
||||
sys.exit(1)
|
||||
|
||||
try:
|
||||
file_info = os.stat(iptables_path)
|
||||
@ -164,7 +164,6 @@ def check_iptables_forward_accept(ipv6=False):
|
||||
command = "ip6tables"
|
||||
output = os.popen(command + "-S FORWARD").read()
|
||||
|
||||
# Check if the output contains '-P FORWARD ACCEPT'
|
||||
if "-P FORWARD ACCEPT" not in output:
|
||||
print(
|
||||
f"'{command} -P FORWARD ACCEPT' is not set. This may cause issues in tests"
|
||||
|
Loading…
Reference in New Issue
Block a user