Skip to content

Commit 0a6c1a8

Browse files
authored
auditd: fix curl command (sonic-net#17667)
Description of PR Summary: fix compatibility curl issue in 202311 OSVersion "stderr_lines": ["curl: option --fail-with-body: is unknown" Approach What is the motivation for this PR? fix compatibility curl issue in 202311 OSVersion "stderr_lines": ["curl: option --fail-with-body: is unknown" How did you do it? Remove the --fail-with-body
1 parent 48edf5b commit 0a6c1a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/auditd/test_auditd.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
DOCKER_EXEC_CMD = "docker exec {} bash -c "
1616
NSENTER_CMD = "nsenter --target 1 --pid --mount --uts --ipc --net "
17-
CURL_HTTP_CODE_CMD = "curl --fail-with-body -s -o /dev/null -w \%\{http_code\} http://localhost:8080" # noqa W605
18-
CURL_CMD = "curl --fail-with-body http://localhost:8080" # noqa W605
17+
CURL_HTTP_CODE_CMD = "curl -s -o /dev/null -w \%\{http_code\} http://localhost:8080" # noqa W605
18+
CURL_CMD = "curl http://localhost:8080" # noqa W605
1919
logger = logging.getLogger(__name__)
2020

2121

0 commit comments

Comments
 (0)